Nerd talk: CSS question

by Greenacres | 26/08/2008 12:26:16

Greenacres

Hello I'm doing some web design but I'm really confused.

http://www.fruitydesigns.co.uk

There are two boxes, red and dark green underneath. I am trying to get the dark green box to float right so that they both sit side by side. But for some reason it floats right but still sits underneath.

Any ideas?

I have tried setting margins and widths etc but I still can't seem to get it.

by Slorkuz | 26/08/2008 13:39:03

Slorkuz


Q u o t e:
If your boxes are div elements use float (left/right) to position them on the same line ie

<div style="float:left;"></div>
<div style="float:left;"></div>

Places two boxes next to eachother.


add in style="position: relative; float: left; display: block;" as you want them appearing as blocked objects and relative to parent container to make float work properly :)

[ Post edited by Slorkuz ]


1013
Hot: Grab one of our RSS feeds to stay updated with what's happening with your class!

Bump! Recently Bumped Threads

 

Blizzard Announcement Recent Blizzard Announcements

 

We suggest