backgrounds - Page 4 - Post ID 221353

User 122279 Photo


Senior Advisor
14,461 posts

I found out what happened. You happened to delete a </div>. If you put it back just in front of the line
<!-- end of content -->
everything will fall back into place.

I'm working on a solution for you to make the video responsive. Will upload something later.
One thing you may not be aware of: If you have a code like this: <p><h1></p></h1> or similar, you may be in trouble. Back in the 90ies (I started out in 1996 myself) the browsers were more forgiving, but to have it correct now, you need to make it <p><h1></h1></p> instead, mark the sequence. That goes for all html tags.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2622002 Photo


Registered User
25 posts

Thanks I knew something was missing or not closed but couldn't find it.
Will take care of h1 tags etc
I'm still not clear about how I use css to change things on many pages at once or use it as a template for new pages. For example the product info in my sidebar isn't in the css file.
k.
User 122279 Photo


Senior Advisor
14,461 posts

New upload is ready, same location. The download link is right at the bottom. The video is responsive, I had to work a bit on that one.
I left your table (advert) as is for now, it is responsive anyway, so it works. But it contains some deprecated code that we can work on later.

You will see that I have created a 'textboxwide' and a 'textboxnarrow' class in the css. The narrow one has been used for the text to the right of the video. The wide one is for any text or other elements that go across the whole width of the 'main' div. If you need textboxes in other widths, the width can be overridden by inserting a new width as inline style, directly on the actual box.

You want elements that appear on all pages to be linked to the pages instead of inserted in every page sepearately, if I understand you correctly. There are different ways of doing that, It is just being discussed here:
http://www.coffeecup.com/forums/html-ed … post221094
My preferred method is the one Per describes, with php. But first you have to check if your server has php installed. You do that by opening a new file in the html Editor, and in the body of the document you paste in this bit of code:
<?php
phpinfo();
?>

then save the document as info.php and upload it to your server. Afterwards navigate to it with your browser and see if it tells you something. If you could copy the first chunk of the file, with the version number and attach it here, then I will know what to do.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 122279 Photo


Senior Advisor
14,461 posts

One more thing: After you had added a couple more menu items, part of the menu wrapped to a new line. If it is ok with you, I have shortened the text on some of the menu items. What you also could do is take away the Site map and add it to the footer instead. It's quite common to place it there. On the test site I have it in both places, but that is obvious one too many. ;)
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2622002 Photo


Registered User
25 posts

Ok
and I'll check into the other things you mentioned today
thanks
k.
User 2622002 Photo


Registered User
25 posts

User 2622002 Photo


Registered User
25 posts

User 122279 Photo


Senior Advisor
14,461 posts

That's brilliant! Then take a look at http://inger.cybeer.no/stuff2 . You won't see any difference, but what I have done is chop off the sidebar, the nav and the footer and included them. Those three areas are now in separate files, and if you need to edit them, you do it once for all your pages. As usual, you can download them and check them out.
What will be different for you if you go the php way, is that locally on your pc, if you open index.php you will not be able to see the included bits. Php is a server side thing, and in order to see them, you have to upload them to the server. And when editing the includes, they will look kind of 'raw', because they don't have any css attached to them. But when uploaded, they will of course use the css of the index page.
What you need to do further, is renaming all your pages from .html to .php. And don't forget all the links on each page. Seems a lot to do, but you only do it once if you make sure you do it before starting on any of the other pages.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 122279 Photo


Senior Advisor
14,461 posts

Hi again. Go back to stuff1 for a bit, and open it using a smartphone or a small tablet in portait orientation (or narrow your pc screen below 600px wide). I added some media query so that the sidebar drops below the main if the screen is smaller than 600px wide. This is what makes a site really responsive (among other things), and the result is that on a smartphone e.g. the site does not look too squashed, and everything is not all that tiny. If you like it, I can do the same with the php version in stuff2.
I haven't uploaded any folder this time, but if you want it this way, I'll do that.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2622002 Photo


Registered User
25 posts

I'll have to think a bit about the php-seems pretty scary to me. I'll study what you've sent.
What if there is an outside link to a page like this one
http://www.upholster.com/howto/cushion.html
and I rename it php will the link still pull up the same page?

I've added a lot of info to http://www.upholster.com/skeleton.html
like Facebook code (not sure if it's in the right place-top of body), link urls etc.
1. I've added an image with text in main content area. How do I get the text to align to the top as you did with the youtube video? I'll have to to this on most of my pages like the one link above.
2. What would you suggest to do with the advert in main content? I have a bunch of similar ones on this page in tables www.upholster.com/supply

I can't tell how much I appreciate your help. I pulled out a lot of my hair in 96-97 when I first started getting into this internet stuff. Then came the Google killer penguin.....
k.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.