| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
knocking heads
Join Date: Jul 2003
Location: London, UK
Posts: 1,945
|
CSS issues
been working on doing my first CSS site at work, and its all gone pretty well except for a few things.. 1. centering the container div, i cant seem to make it center to the page, and have resorted to using the <center> tag (yes, i know) 2. the container border is supposed to go around all the content, it does this in IE but not in firefox/opera etc 3. the footer links look fine in IE but go over to a new line in FF/Op Any ideas? Here's the link: http://www.nicehostels.com/index.htm Scott |
|
|
|
|
|
#3 (permalink) |
|
Moderator
Join Date: Oct 2004
Location: Bristol
Posts: 3,394
|
centering with css isn't as straight forward as it should be because you need two methods, one for ff and one for IE. set left and right margins to auto for FF and use text-align: center for IE. Tables are fine to tabulate data, thats what their there for |
|
|
|
#5 (permalink) | |
|
Floating libation anyone?
|
Quote:
fun: HGC v.4 | last.fm: DT | me | oi! f*ck u roto: ...via meebo!
New to interweb design? Your friends at dt can help. |
|
|
|
|
#7 (permalink) | |
|
i still want paying
Join Date: Oct 2003
Location: newcastle, uk
Posts: 4,769
|
Quote:
try clear: both; to the #footer edit: sorry wont work if the footer is inside the container, going to have to add a <div class="clearer"> </div> after the container div with .clearer{ clear:both; } think thats the problem |
|
|
|
|
#9 (permalink) | |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,205
|
Quote:
Yep. AFAIR it's just IE5.x that has trouble with the margin: auto method. Code:
|
|
|
![]() |