954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Float Not working

I have a websie I have been designing and the image float isn't working.

It was fine with aliggn="right" on my system but on smaller screens with ie the image was n top of the writing.

I have tried with theimage placed with in the text below and on top but i can't make it work.

Im sure its something dumb but i can't find it.

http://www.s263871150.websitehome.co.uk/gdc.html

<a href="http://www.garden-design.co.uk/index1.html" target="_blank"><img src="images/gdc1.jpg" alt="Garden Design Company" width="300" height="185" float="right" /></a>
		<p>This is a Flash based website made for a high end garden design and construction company. The owners wanted the site to reflect the up to date nature of their services whilst making the site as easy to navigate and informative as possible. <i>Please Click the Image to view this site</i></p>
		
  </div>


css is here http://www.s263871150.websitehome.co.uk/template_style.css

any help would be much appreciated.

Dave

kained
Junior Poster
126 posts since May 2004
Reputation Points: 10
Solved Threads: 0
 

hey dave,

if you try telling your div#content in ur css to float left and lose the 200px left padding (maybe try 20 or so), that should work.

Fost

Fost
Newbie Poster
9 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

That hasn't worked and the cv part of the site is now not working properly. The purple box should extend with the text.

http://www.s263871150.websitehome.co.uk/cv.html

ah okay the box thing works in IE but no firefox or opera. But still no text wrap around. Any ideas?

I don't think i have explined myselfvey wel. What i want to happen is the text on say http://www.s263871150.websitehome.co.uk/london.html to wrap around the main graphic rather then be underneath.


dave

kained
Junior Poster
126 posts since May 2004
Reputation Points: 10
Solved Threads: 0
 

hey dave, well i checked out your page again and the float seems to be working unless i dont understand your problem. Anyways, the problem with the purple box, add 'overflow: hidden;' to your div#wrapper class and the purple box should extend to contain ur text.

fost

Fost
Newbie Poster
9 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

This may or may not be the problem, but it is not valid:

<img src="images/gdc1.jpg" alt="Garden Design Company" width="300" height="185" float="right" />

should be:

<img src="images/gdc1.jpg" alt="Garden Design Company" width="300" height="185" style="float:right" />
buddylee17
Practically a Master Poster
697 posts since Nov 2007
Reputation Points: 232
Solved Threads: 137
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You