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 758 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

100% width DIV

Thread title: 100% width DIV
Closed Thread  
Page 1 of 2 1 2 >
    Thread tools Search this thread Display Modes  
02-17-2008, 05:22 PM
#1
Ant is offline Ant
Status: Member
Join date: Apr 2005
Location: England
Expertise:
Software:
 
Posts: 209
iTrader: 5 / 100%
 

Ant is on a distinguished road

  Old  100% width DIV

This is not my layout, or my coding, I'm just using this as an example:

http://cmstemplates.net/sales/blog6/

If you go onto that blog design, then change your browser size to say 800x600, or simpily Restore Down your window so you have to horizontally scroll.

When you do so, the background on the 100% width div's gets cut off, and bugs up the layout.

Anyone know how to fix this?
Cheers

02-21-2008, 09:14 PM
#2
Ant is offline Ant
Status: Member
Join date: Apr 2005
Location: England
Expertise:
Software:
 
Posts: 209
iTrader: 5 / 100%
 

Ant is on a distinguished road

  Old

I guess no-body knows?

02-21-2008, 09:46 PM
#3
bgolat is offline bgolat
Status: I love this place
Join date: Mar 2005
Location:
Expertise:
Software:
 
Posts: 714
iTrader: 0 / 0%
 

bgolat is on a distinguished road

Send a message via ICQ to bgolat Send a message via AIM to bgolat Send a message via Yahoo to bgolat

  Old

Not sure what you mean, but the content section of the design doesn't seem to be flexible at all.

02-21-2008, 10:09 PM
#4
Gurnk is offline Gurnk
Status: Member
Join date: May 2007
Location: US
Expertise:
Software:
 
Posts: 380
iTrader: 12 / 100%
 

Gurnk is on a distinguished road

Send a message via AIM to Gurnk Send a message via MSN to Gurnk

  Old

It would seem that since the h1 set to a fixed width, and the .leaderboard div set to a fixed width (both adding up to be over 800px), they do not contract like the rest.

That may be the problem.

EDIT: Heh, but also looking at it, having the featured image as one big image won't allow the rest to expand either. (http://cmstemplates.net/sales/blog6/..._container.gif). Thats over 1000px itself. So nothing below 1000px will work.

02-21-2008, 10:21 PM
#5
Ant is offline Ant
Status: Member
Join date: Apr 2005
Location: England
Expertise:
Software:
 
Posts: 209
iTrader: 5 / 100%
 

Ant is on a distinguished road

  Old

Hmm, not sure you understand what I mean

again that design is not mine, or my code.. it was just an example but:

http://img337.imageshack.us/img337/7292/22487200ua7.gif

See how the header and footer are cut down when the window is minized, or you have to scroll

02-21-2008, 11:00 PM
#6
Gurnk is offline Gurnk
Status: Member
Join date: May 2007
Location: US
Expertise:
Software:
 
Posts: 380
iTrader: 12 / 100%
 

Gurnk is on a distinguished road

Send a message via AIM to Gurnk Send a message via MSN to Gurnk

  Old

Right, because the content area may be able to expand; it is going out as far as the container div I am guessing. However, the container div can't go very far in because the 2 divs in that design (I know isn't yours (h1 and .leaderboard - among other fixed widths in the code)) can't collapse in.

For things to be fluid or flexible, you need to use percent measurements all the way through.

Maybe thats still not your problem... But I think that is what is causing it to break up. (and would cause any other design to break up as well)

02-21-2008, 11:08 PM
#7
Dr John is offline Dr John
Status: Junior Member
Join date: May 2005
Location:
Expertise:
Software:
 
Posts: 77
iTrader: 0 / 0%
 

Dr John is on a distinguished road

  Old

It's quite simple really, to see what has gone wrong. the div .top has a fixed width of 990px, so if the viewport is reduced, it sticks out the side.

It is also due to a common disease known as "being daft enough to design the layout with the design window set a full screen and then not checking the design in when it is resized", IE careless designer syndrome.

Possible solution? set a min-width on .container, and set .top to 100%

02-21-2008, 11:09 PM
#8
Gurnk is offline Gurnk
Status: Member
Join date: May 2007
Location: US
Expertise:
Software:
 
Posts: 380
iTrader: 12 / 100%
 

Gurnk is on a distinguished road

Send a message via AIM to Gurnk Send a message via MSN to Gurnk

  Old

Yeah min-width will help some browsers, but not all support it.

02-24-2008, 06:13 AM
#9
mpbroker is offline mpbroker
Status: I'm new around here
Join date: Feb 2008
Location:
Expertise:
Software:
 
Posts: 16
iTrader: 0 / 0%
 

mpbroker is on a distinguished road

  Old

Originally Posted by Dr John View Post
It's quite simple really, to see what has gone wrong. the div .top has a fixed width of 990px, so if the viewport is reduced, it sticks out the side.

It is also due to a common disease known as "being daft enough to design the layout with the design window set a full screen and then not checking the design in when it is resized", IE careless designer syndrome.

Possible solution? set a min-width on .container, and set .top to 100%

02-25-2008, 04:24 PM
#10
Dr John is offline Dr John
Status: Junior Member
Join date: May 2005
Location:
Expertise:
Software:
 
Posts: 77
iTrader: 0 / 0%
 

Dr John is on a distinguished road

  Old

Originally Posted by Gurnk View Post
Yeah min-width will help some browsers, but not all support it.
I know that.
And I also know how to make those that don't recognise it work just as well.

But I also don't have to do all of someone else's work for them, do I?

(Hint: conditional expressions.)

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