NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Float{} tag no longer responds

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-14-2003, 12:56 PM THREAD STARTER               #1 (permalink)
New Member
Join Date: Feb 2003
Posts: 11
tha_Gsheep is an unknown quantity at this point
 



Float{} tag no longer responds


Hey there, for some reason the float tag is not responding when
put into this hierarchy.

Right, this is the page :
http://www.westclub.co.uk/newsite/css/notreall.html
and if you scroll down you'll see that an image interupts
the flow of text even though itis assigned style="float: left;"
on line 73 of the source.

Now I know that it has something to do with this DIV:
#Main {
position: absolute;
top: 188px;
width: 150px;
left: 47px;
}
????: NamePros.com http://www.namepros.com/programming/15135-float-tag-no-longer-responds.html
,that you can find on line 70 of the style sheet(www.westclub.co.uk/newsite/css/main.css)
This is the DIV that contains the text for the articles and such
but I just don't see whyit interferes with Float.

P.s. Sorry about my sloppy development code.
PP.s If you use any other browser apart from explorer the nav bar will
act up, I know but thats not really an issue just now as 99.9 of the
visitors use explorer.

Cheers.
tha_Gsheep is offline  
Old 08-14-2003, 03:28 PM   #2 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



I think it has to something to do with you setting margins on this div:

#explanation, #participation, #benefits, #requirements {
margin: 25px 0 0 176px;
width: 529px;
}

If you remove the margins it will probably float left. I don't know, maybe make a separate div for that part of your page?
deadserious is offline  
Old 08-14-2003, 04:26 PM THREAD STARTER               #3 (permalink)
New Member
Join Date: Feb 2003
Posts: 11
tha_Gsheep is an unknown quantity at this point
 



Nope that dosen't seem to effect anything related. Humph.
I've tried putting some extra DIVs on top of that one but that #Main one seems to be restraining it somehow. I've got this posted on four forums and everyones stumped.
tha_Gsheep is offline  
Old 08-14-2003, 04:37 PM   #4 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



Try removing that entire part of your css and I'll bet you it will float left.

Remove all of this code:
#explanation, #participation, #benefits, #requirements {
margin: 25px 0 0 176px;
width: 529px;
}

EDIT: Actually I just took a closer look at your code and that would cause the image and the text to float to the left lol. I don't know, but you sure have alot of nested divs in there though.
deadserious is offline  
Old 08-15-2003, 04:25 AM THREAD STARTER               #5 (permalink)
New Member
Join Date: Feb 2003
Posts: 11
tha_Gsheep is an unknown quantity at this point
 



Crazy, turns out that this layer that encapsulates it is the problem:

#Main {
position: absolute;
top: 188px;
width: 150px;
left: 47px;
}

The position: absolute was conflicting with the float{} in a nested layer. So I just made it realtive to the page header.
tha_Gsheep is offline  
Old 08-15-2003, 04:12 PM   #6 (permalink)
New Member
Join Date: Jul 2003
Posts: 9
IndigoPixel is an unknown quantity at this point
 



It's because you have an absolutely positioned element. position:absolute; and float: don't play well together ...
IndigoPixel is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 02:56 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger