Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Will not center on index (home page)
Old 12-27-2009, 08:00 AM Will not center on index (home page)
Novice Talker

Posts: 5
Name: David Dell
Trades: 0
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?

<head> <style type="text/css"> <!-- body { text-align: center; min-width: 1100px; } #wrapper { width: 1100px; margin: 0 auto; text-align: left; } --> </style> </head> <body> <div id="wrapper">
D Dell is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-27-2009, 08:36 AM Re: Will not center on index (home page)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-27-2009, 10:25 AM Re: Will not center on index (home page)
Novice Talker

Posts: 5
Name: David Dell
Trades: 0
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.

Thanks
D Dell is offline
Reply With Quote
View Public Profile
 
Old 12-27-2009, 10:52 AM Re: Will not center on index (home page)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
and the site would be??
__________________
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?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-27-2009, 10:59 AM Re: Will not center on index (home page)
Novice Talker

Posts: 5
Name: David Dell
Trades: 0
fortyonemotel.com
D Dell is offline
Reply With Quote
View Public Profile
 
Old 12-27-2009, 02:16 PM Re: Will not center on index (home page)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Use a proper DTD

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?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-27-2009, 03:14 PM Re: Will not center on index (home page)
Defies a Status

Posts: 1,606
Trades: 0
That is a catchy design.

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.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 12-27-2009, 03:32 PM Re: Will not center on index (home page)
Novice Talker

Posts: 5
Name: David Dell
Trades: 0
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.
D Dell is offline
Reply With Quote
View Public Profile
 
Old 12-27-2009, 05:26 PM Re: Will not center on index (home page)
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-27-2009, 05:58 PM Re: Will not center on index (home page)
Novice Talker

Posts: 5
Name: David Dell
Trades: 0
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.
D Dell is offline
Reply With Quote
View Public Profile
 
Old 12-27-2009, 06:43 PM Re: Will not center on index (home page)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-27-2009, 06:46 PM Re: Will not center on index (home page)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Will not center on index (home page)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.85151 seconds with 12 queries