# November 21, 2008 at 4:32 am
I have recently added a reviews page to my site, but I have found that when resize the page it causes everything to reposition itself.
Does anyone know how to make it so that no matter how much the browser is resized it will always be scaled and won’t squash up?
Here’s the link# November 21, 2008 at 5:04 am
Ok its great that you’re using divs over tables but you using them the wrong way. Wayy too many <br> tags (<br />)
Why did you use margin: 0 auto; to center the div and you put center on it?
width : 80%;
margin: 0 auto;
border: 0px solid; if border is 0 you dont have to say its solid.
You should really try checking out grid frameworks, Yahoo has a great one and I’m sure you’d find it useful
http://developer.yahoo.com/yui/grids/# November 21, 2008 at 5:32 am
This reply has been reported for inappropriate content."beezer123" wrote:…is there any way that I can get the same spacing without using loads of <br> tags?
That’s what CSS is for! You should never have to add html mark-up in order to force a display (although the very occasional <div> is forgivable). HTML is for marking up content and not for display. Display is controlled entirely with CSS. So if you need extra space, you’ll apply it with CSS.
<center> is also bad mark-up. If you wish to centre an area, then you apply this via CSS and not HTML.
Do not use <center> tags. Do not use <br> tags.
You must be logged in to reply to this topic.