trying to have fixed nav in a position:relative container
alright so i want my whole layout to center itself relative to the size of the page. and i want the content to scroll. but i want the nav and background to be fixed instead of absolute. but when i swapped fixed for absolute they weren't within the container anymore and just went to the left side of the page. right now i'm at a loss for how to fix it.
Your Website has a lot of issues. You have 2 <html>, <head>, and <body> tags, when you should only have one. Your are missing DTD at the top of your document (definitely not recommended). Your CSS uses UTF-8 encoding, but the Website itself is ISO-8859-1 (bad idea). Yo will need to escape special characters like V&A should be V&A. Also, I wouldn't use <h1> for nav menu links. In fact it is semantically correct to have only one <h1> tag and although this rule is not "carved in stone," it would help SEO (Search Engine Optimization) considerably if you used it as your for main header. Your container div is closed after 1st <body> tag.
Here, try this fix in the attached file. This should help. If you have any questions, don't hesitate to post.
Note: You will need to remove the .txt extension from this HTML file for it to be usable. I inserted CSS directly into the HTML file, but you can/should remove and place in the external file. One more thing, always provide width and height attributes for your <img> tags.
Bookmarks