Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-16-2011, 04:47 PM   PM User | #1
mr curious
New Coder

 
Join Date: Jan 2011
Posts: 55
Thanks: 7
Thanked 0 Times in 0 Posts
mr curious is an unknown quantity at this point
liquid layout

Hey all,

I tried my hands on a liquid layout website and it seems that everything turned out alright, its just that (in IE expecially) is that when I zoom the percentage of the browser, the text in the body spills out the divs.

Not really sure why this happens.
the site is at http://www.cherryart.co.za

Thanks
mc
mr curious is offline   Reply With Quote
Old 06-16-2011, 05:41 PM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
When aiming a liquid layout, the better unit of measurement to be used is em. Otherwise the layout may break even in FF, if the user has set "Zoom text only" under the "View" tab in his browser.

Have a look at http://jontangerine.com/log/2007/09/...youts-with-css
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 06-16-2011, 09:53 PM   PM User | #3
mr curious
New Coder

 
Join Date: Jan 2011
Posts: 55
Thanks: 7
Thanked 0 Times in 0 Posts
mr curious is an unknown quantity at this point
Is there any way to keep a liquid layout and have the div resize with an increase in size?

And I also wanted to know if I coded anything badly in terms of liquidity, since this is my first attempt at a liquid layout.

Thanks
mr curious is offline   Reply With Quote
Old 06-16-2011, 11:12 PM   PM User | #4
GoozeX
New Coder

 
Join Date: Jun 2011
Posts: 58
Thanks: 0
Thanked 2 Times in 2 Posts
GoozeX is an unknown quantity at this point
Quote:
Originally Posted by mr curious View Post
Is there any way to keep a liquid layout and have the div resize with an increase in size?

And I also wanted to know if I coded anything badly in terms of liquidity, since this is my first attempt at a liquid layout.

Thanks
Try replacing the em with % for your div.
GoozeX is offline   Reply With Quote
Old 06-17-2011, 05:38 PM   PM User | #5
mr curious
New Coder

 
Join Date: Jan 2011
Posts: 55
Thanks: 7
Thanked 0 Times in 0 Posts
mr curious is an unknown quantity at this point
I haven't used em's. Its all in %. if you'll take a look at the link to the site
mr curious is offline   Reply With Quote
Old 06-17-2011, 10:05 PM   PM User | #6
GoozeX
New Coder

 
Join Date: Jun 2011
Posts: 58
Thanks: 0
Thanked 2 Times in 2 Posts
GoozeX is an unknown quantity at this point
Any value set using % will change as the size of browser window changes: the bigger the browser, the bigger the padding will come.

If you want your design to scale well with different font sizes, then you use ems. So if users increase their browsers font sizes, then sizes set in ems will also increase accordignly.

Using px is for precise design with graphical elements that line up exactly, regardless of browser window size or font setting.

By the way, i checked your source code and you got few errors.
For the Cherry Art, when using <span> dont use "id" use "class" instead.
Quote:
<p><span id="cherry">CHERRY ART</span>&nbsp; produces a wide range of prints…
For all the <spans id=""> change the id to class <span class="">
GoozeX is offline   Reply With Quote
Old 06-18-2011, 11:18 AM   PM User | #7
mr curious
New Coder

 
Join Date: Jan 2011
Posts: 55
Thanks: 7
Thanked 0 Times in 0 Posts
mr curious is an unknown quantity at this point
cool thanks Goozex.
That makes perfect sense. So in a way liquid layouts don't accommodate for everything!
is there a way to combine a liquid layout with ems?
so you could still define containers etc with % but the font size with ems?
mr curious is offline   Reply With Quote
Old 06-18-2011, 03:03 PM   PM User | #8
effpeetee
Senior Coder

 
effpeetee's Avatar
 
Join Date: Feb 2007
Location: Clapham Junction - London SW
Posts: 4,884
Thanks: 228
Thanked 204 Times in 203 Posts
effpeetee is an unknown quantity at this point
This may mildly interest you.

Try pulling it around. Size wise.
"control +" and "control -" will alter the text size without altering the image.
Frank
__________________
* Sources (updated: 21.11.2012.
Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

Last edited by effpeetee; 06-18-2011 at 03:38 PM..
effpeetee is offline   Reply With Quote
Reply

Bookmarks

Tags
expand, liquid layout, text spills out of div, zoom

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:39 AM.


Advertisement
Log in to turn off these ads.