Thread: div css
View Single Post
  #11 (permalink)  
Old 09-12-08, 11:21 PM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
Quote:
Originally Posted by theighost View Post
well actually i don't want to wrap the text around the image.
i will give u the example

::::::::text text text
::::::::text text text
::::::::text text text
(empty)text text text
(empty) text text text

i don't want it to look like this

:::::: text text text
:::::: text text text
:::::: text text text
text text text text

the points represent the image
That's easyier, you start out with a div container, with a width less that the screen size. In the div you have the image and the text. Just float the image left ( the image must have an assigned width at the very least), then put the text in a div with a specific width, where the combined width of the image and the text div are not greater then the containers width and either float the text div left or right.
Assign the same CSS to the text div that you assign to the container only changing the width and height.

Should work.
__________________
Jerry Broughton
Reply With Quote