PDA

View Full Version : CSS Div arrangemant


bunchofapes
02-25-2008, 11:22 AM
Hello

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!

Dave

tux
02-25-2008, 12:53 PM
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

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

domedia
02-26-2008, 05: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.