CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 1st, 2002, 03:03 PM
BlueGus BlueGus is offline
Polymath
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Indiana
Posts: 20 BlueGus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 55 sec
Reputation Power: 0
CSS, Layout, and Cross-browser problems

I am building a template-like page that is separated into 3 main sections. The first DIV is across the top for the logo and a horizontal menu. The second DIV is along the left, for a vertical menu. The third DIV is for the content and is position:absolute so that the top left corner of it is just below the top DIV and just to the right of the left one (left:150px).

The content DIV needs to take up the remaining width of the screen (after the 150px) and all content needs to be centered in it.

The problem I'm having is that on some browsers (Mac IE, for example) it renders properly with the content DIV set with text-align:center. On a PC, though, the content still gets pushed all to way to the left, no centering at all. I've even tried align="center" to no avail.

The only thing that seems to work is to put a table inside the content DIV (with width=100% align=center) and then the content inside the table, but there should be a better way.

Any suggestions?

Thanks!

Reply With Quote
  #2  
Old August 3rd, 2002, 05:56 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
afaik there is no better way. most times, if you find ONE way that works for all browsers, you should be happy... for many things there is none but to do browser-detection
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS, Layout, and Cross-browser problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway