Old 16-11-2005, 10:05   #1 (permalink)
stealthcow
knocking heads
 
stealthcow's Avatar
 
Join Date: Jul 2003
Location: London, UK
Posts: 1,914
CSS border problems

I've been changing the structure of the HTML page for this site: http://www.nicehostels.com/show_countries.php

The problem i've run into is now that ive moved things around and used absolute positioning, the container border no longer surrounds all the content (i was using a clearer div to achieve this previously..)

any ideas how to make the border go around everything again rather than just the header?

cheers
  Reply With Quote
Old 16-11-2005, 10:15   #2 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 7,000
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
  Reply With Quote
Old 16-11-2005, 10:44   #3 (permalink)
stealthcow
knocking heads
 
stealthcow's Avatar
 
Join Date: Jul 2003
Location: London, UK
Posts: 1,914
doesnt work
  Reply With Quote
Old 16-11-2005, 10:47   #4 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 7,000
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
hmmm. lots of nested divs.
try and apply it to some other divs too, such as the #content?
  Reply With Quote
Old 16-11-2005, 10:49   #5 (permalink)
stealthcow
knocking heads
 
stealthcow's Avatar
 
Join Date: Jul 2003
Location: London, UK
Posts: 1,914
tried that already.. doesnt work
  Reply With Quote
Old 16-11-2005, 10:50   #6 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 7,000
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
*shrug*
  Reply With Quote
Old 16-11-2005, 10:54   #7 (permalink)
stealthcow
knocking heads
 
stealthcow's Avatar
 
Join Date: Jul 2003
Location: London, UK
Posts: 1,914
are nested divs a problem?

i know its easy to make sites using non nested divs, but they all look the same - this is something different and has required a different way of doing things as a result - duno if its the right way of doing it though
  Reply With Quote
Old 16-11-2005, 11:00   #8 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 7,000
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
it's the absolute positionning

#content {
margin-top:150px;

font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
text-align:left;
width: 760px;
clear:both;
}

it will break in IE, you'll need to set a different margin to fix that.

You seem to be using an awful lot of redundant code. It's hard to skeem through...
take the font-family out, and declare it for the body, then only change it where needed
  Reply With Quote
Old 16-11-2005, 11:05   #9 (permalink)
stealthcow
knocking heads
 
stealthcow's Avatar
 
Join Date: Jul 2003
Location: London, UK
Posts: 1,914
theres a lot of redundant code for that page, but a lot of the other pages are completely different

its a bit annoying not having the same structure on every page, but thats how its been designed..
  Reply With Quote
Old 16-11-2005, 11:11   #10 (permalink)
stealthcow
knocking heads
 
stealthcow's Avatar
 
Join Date: Jul 2003
Location: London, UK
Posts: 1,914
cheers, border works now
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8