Phatsta Posted November 5, 2009 Report Share Posted November 5, 2009 Hey everyone! I'm new to this forum, my name is Daniel and I've been a html beginner for ages. I started out over 10 years ago but it's never been my strong side so I never really advanced anywhere But I will do what I can to contribute in any way I can! I have a problem with a site I'm trying to put together. You can clearly see the problem if you look at it here: http://www.falloutdata.se/Hallafors/ You'll have to excuse the design, it's really only temp pictures and text so far, I haven't got very far with it yet. As you can see the menu does not center. Also the background image at the top doesn't load at the top - unless you click the body - then it aligns where it's suppose to be, but that's something I haven't looked into yet. The menu however, I've tried what I could find on Google, like putting the menu inside a DIV tag, making the menu an include file and of course the obvious like C tags and things like that. But no matter what I do the menu won't move, so I've ran out of things to try. Any ideas? I'd be really grateful! Quote Link to comment Share on other sites More sharing options...
Phatsta Posted November 5, 2009 Author Report Share Posted November 5, 2009 Disregard the part about the background image, I managed to solve it by a simple valign The funny thing is that the menu will respond to valign too, but not to align. So I can get it in place vertically, but not horizontally. Wierd... Quote Link to comment Share on other sites More sharing options...
Andrea Posted November 5, 2009 Report Share Posted November 5, 2009 Actually, you menu does center (I'm viewing in FX) (checked IE8, and it's not centered, but I don't know why not) - but you do have several validation errors that should be fixed. For better coding, use an HTML 4.01 strict doctype, and use CSS for layout and formatting, and NOT tables (they are for data). s are meant for line-breaks, and not to create space. Use margins and padding for that. I suggest you look through http://www.csstutorial.net/ Quote Link to comment Share on other sites More sharing options...
Phatsta Posted November 5, 2009 Author Report Share Posted November 5, 2009 Thanks for your input! I actually thought I was using html 4.01 doctype? I will try to read up on CSS though, didn't know about that so thanks a lot. Quote Link to comment Share on other sites More sharing options...
Andrea Posted November 5, 2009 Report Share Posted November 5, 2009 You're using HTML 4.01 but transitional - I recommend strict. Promotes 'cleaner' code. And definitely look into CSS - it's the way to go. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.