Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 687 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Trouble in paradise - Box expansion problem

Thread title: Trouble in paradise - Box expansion problem
Closed Thread  
Page 1 of 2 1 2 >
    Thread tools Search this thread Display Modes  
08-17-2008, 07:28 PM
#1
.Cyanide is offline .Cyanide
Status: Senior Member
Join date: Mar 2006
Location: Stockholm,Sweden
Expertise: Web Design, Coding
Software: Phoshop CS3
 
Posts: 757
iTrader: 4 / 100%
 

.Cyanide is an unknown quantity at this point

Send a message via MSN to .Cyanide

  Old  Trouble in paradise - Box expansion problem

Hey

I have a problem with my main content box that doesn't expand with the boxes inside of it. Here's a screenshot:

http://www.exoload.com/808/myhood.jpg

If you need the css or html, just tell me and i'll provide it.

Thanks!

08-17-2008, 07:29 PM
#2
Garyrae is offline Garyrae
Status: Request a custom title
Join date: Dec 2005
Location: Colchester, UK
Expertise:
Software:
 
Posts: 4,625
iTrader: 16 / 100%
 

Garyrae is on a distinguished road

Send a message via MSN to Garyrae Send a message via Skype™ to Garyrae

  Old

If they're floated, have you remembered to clear the area below them?

08-17-2008, 07:55 PM
#3
.Cyanide is offline .Cyanide
Status: Senior Member
Join date: Mar 2006
Location: Stockholm,Sweden
Expertise: Web Design, Coding
Software: Phoshop CS3
 
Posts: 757
iTrader: 4 / 100%
 

.Cyanide is an unknown quantity at this point

Send a message via MSN to .Cyanide

  Old

Yup, the left one is allready cleared, but the other one just doesn't seem to align when i clear it. In fact, the clearing messes it up even more =/

Edit. Or did you mean the orange background? If so, I tried clearing that one, but it just ended up at the bottom of the page :P

08-17-2008, 08:00 PM
#4
Garyrae is offline Garyrae
Status: Request a custom title
Join date: Dec 2005
Location: Colchester, UK
Expertise:
Software:
 
Posts: 4,625
iTrader: 16 / 100%
 

Garyrae is on a distinguished road

Send a message via MSN to Garyrae Send a message via Skype™ to Garyrae

  Old

I meant like:

Code:
<div id="left"></div>
<div id="right"></div>
<div style="clear: both"></div>

08-17-2008, 08:09 PM
#5
.Cyanide is offline .Cyanide
Status: Senior Member
Join date: Mar 2006
Location: Stockholm,Sweden
Expertise: Web Design, Coding
Software: Phoshop CS3
 
Posts: 757
iTrader: 4 / 100%
 

.Cyanide is an unknown quantity at this point

Send a message via MSN to .Cyanide

  Old

I've actually got one div containing the left and right one, does that mean I should add the clearing div after the container end-tag? Like:

Code:
<div id="main">
<div id="left"></div>
<div id="right"></div>
</div>
<div style="clear:both;"></div>

08-17-2008, 08:11 PM
#6
Garyrae is offline Garyrae
Status: Request a custom title
Join date: Dec 2005
Location: Colchester, UK
Expertise:
Software:
 
Posts: 4,625
iTrader: 16 / 100%
 

Garyrae is on a distinguished road

Send a message via MSN to Garyrae Send a message via Skype™ to Garyrae

  Old

Add it just after #right, inside #main.

08-17-2008, 08:18 PM
#7
.Cyanide is offline .Cyanide
Status: Senior Member
Join date: Mar 2006
Location: Stockholm,Sweden
Expertise: Web Design, Coding
Software: Phoshop CS3
 
Posts: 757
iTrader: 4 / 100%
 

.Cyanide is an unknown quantity at this point

Send a message via MSN to .Cyanide

  Old

I ended up with this: http://www.exoload.com/808/myhood2.jpg

I checked all the margins and I couldn't fix it with the margins, and it seems everything looks perfect in IE 7 but messed up a bit in FF...

08-17-2008, 09:53 PM
#8
Gaz is offline Gaz
Gaz's Avatar
Status: Request a custom title
Join date: Apr 2007
Location: UK
Expertise: Code & Programming
Software: Coda, TextMate, Sublime 2
 
Posts: 2,097
iTrader: 26 / 100%
 

Gaz will become famous soon enough Gaz will become famous soon enough

Send a message via Skype™ to Gaz

  Old

I have this problem on my blog. The only way around it is if I put the sidebar first- which ain't great SEO...

08-17-2008, 10:33 PM
#9
.Cyanide is offline .Cyanide
Status: Senior Member
Join date: Mar 2006
Location: Stockholm,Sweden
Expertise: Web Design, Coding
Software: Phoshop CS3
 
Posts: 757
iTrader: 4 / 100%
 

.Cyanide is an unknown quantity at this point

Send a message via MSN to .Cyanide

  Old

Yea what is it with that anyway? I've found that if you switch places with the sidebar and main content, everything can align perfectly. I don't understand the logic of that..guess I'm not much of a coder anyway :P

08-17-2008, 11:00 PM
#10
Gaz is offline Gaz
Gaz's Avatar
Status: Request a custom title
Join date: Apr 2007
Location: UK
Expertise: Code & Programming
Software: Coda, TextMate, Sublime 2
 
Posts: 2,097
iTrader: 26 / 100%
 

Gaz will become famous soon enough Gaz will become famous soon enough

Send a message via Skype™ to Gaz

  Old

I'm not sure, its one of the only things which really bugs me - i tried (with a friend) for about half an hour last night trying all different variations of code, to no avail!

Maybe Gary could explain

Closed Thread  
Page 1 of 2 1 2 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed