2 replies [Last post]
gwh
Offline
Regular
Last seen: 10 years 30 weeks ago
Timezone: GMT+10
Joined: 2005-05-14
Posts: 46
Points: 11

Hi everyone,

I'm having trouble with a layout that contains some floats. I have text in a div with an id of 'content'. It's supposed to float and appear to the right of the 'nav' div but it's being pushed right down below the layout. Just wondered if someone could tell me why this is happening?

http://www.officelinkonline.com.au/test/services.html

div#content {
width: 510px;
float: left;
margin: 0;
padding: 20px 80px 90px;
display: inline;
position: relative;
z-index: 1;
}

Thanks for any help offered.

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 23 hours 16 min ago
Joined: 2004-06-30
Posts: 9669
Points: 805

What's the point of the

What's the point of the inline display?

Also, floated content must come before non-floated content.

Verschwindende wrote:
  • CSS doesn't make pies

gwh
Offline
Regular
Last seen: 10 years 30 weeks ago
Timezone: GMT+10
Joined: 2005-05-14
Posts: 46
Points: 11

Thanks for the reply. The

Thanks for the reply. The problem ended up being an incorrectly positioned div end tag - it needed to go after the content, so all is fine now.