View Full Version : CSS Div arrangemant

02-25-2008, 10:22 AM

I am relativly new to CSS.

Basically what i am trouble with is the way CSS formatted Divs respond upon a browser text resize.

If for example i have a div aligned to the right with text in it and a div below with an image how do I make the image div move when the text div is resized?

See http://www.mickleovercommunitycentre.co.uk/TESTING/indexnew.php for the page.

Any help would be appreciated!


02-25-2008, 11:53 AM
Hello Dave and welcome to the forum,

I would suggest that you take a look here....

http://www.w3schools.com/css/default.asp (http://www.w3schools.com/css/default.asp)

and also check out this tutorial here....

http://www.subcide.com/tutorials/csslayout/index.aspx (http://www.subcide.com/tutorials/csslayout/index.aspx)

... so you have a better understanding of CSS.

Regards, Paul

02-26-2008, 10:55 AM
Thanks for that i shall have a look!

02-26-2008, 04:26 PM
You can set the div size, width and height in EM which will grow larger as the text changes.

More simple would just to add no height at all, then the box would just expand with the content.