I have used the following code on all my pages to center the pages. All the pages are centered in FF and IE. However, the index or home page is not centered. What can I do?
Do NOT use HTML comment inside stylesheets, and sizing the body element is not a good idea, you should be using a sized element as an immediate child (known as a "wrapper") or the body element to centre the content.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
Unfortunately I know almost nothing about code. I use MS Publisher to create my web pages. I do a search on things that Publisher can't do then I just copy and paste the code. But, if the instructions are not clear and basic then I have no clue how to make it work or exactly where to paste the code. The fragment I posted here DOES work in all the pages except the home page (index.htm). That is where I need the help. If I need to use something different in code then please tell me what it is. But please give me detailed instructions on just where to put it.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
And get somebody to code you a decent HTML template instead of the bloated MS Office crap that will only work (not very well) with Internet Explorer.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
You have some menu issues on the inner pages. The container centers but the menu does not. Without looking I susupect some absolute positioning is involved.
Correct. Publisher doesn't do navigation sub-menus (fly-out or drop down). That is a different program I bought and I haven't solved the anchor problem yet. However, I'm not concerned about that right now. I'm still trying to figure out why the same code to center the pages works on all the pages except the home page (index). Any ideas? I'm looking for some very nice person to suggest what code I need to insert and where to insert it. And I need the code line for line so I can copy/paste so I don't make a mistake.
The problem is - it's not that simple! Anyone who KNOWS what they're doing and how to solve your problem has to crawl thru that code mess that Publisher spewed out to even begin to know what MIGHT work or what's wrong. I agree with Chris, get someone to code a template for you the right way and you'll have better results.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
I use Publisher to update and make changes because it's easy and I don't know how to do it any other way and I don't know how to code. Therefore, I guess that I'm stuck with what I've got. But, thanks everyone for your help anyway.
Use a CMS such as Joomla, Drupal or Wordpress and you don't need to get involved with much coding (or none at all if you prefer). It will probably be far easier to publish and update pages than battling with publisher and the bloated code it produces
Just have your template done to suit the CMS to choose. AND you can use absolutely any menu style you wish and it won't need to stick with the MS retro design.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
it's all in images !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
HOW ON EARTH CAN IT USE THAT MUCH CODE WITH NO TEXT AT ALL??????????????????????????????????
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?