[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 08-14-2003, 11:56 AM   #1 (permalink)
New Member
 
Join Date: Feb 2003
Posts: 11
20.00 NP$ (Donate)

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;
}
,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, 02:28 PM   #2 (permalink)
Senior Member
 
Join Date: Aug 2002
Posts: 1,300
2.85 NP$ (Donate)

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, 03:26 PM   #3 (permalink)
New Member
 
Join Date: Feb 2003
Posts: 11
20.00 NP$ (Donate)

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, 03:37 PM   #4 (permalink)
Senior Member
 
Join Date: Aug 2002
Posts: 1,300
2.85 NP$ (Donate)

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, 03:25 AM   #5 (permalink)
New Member
 
Join Date: Feb 2003
Posts: 11
20.00 NP$ (Donate)

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, 03:12 PM   #6 (permalink)
New Member
 
Join Date: Jul 2003
Posts: 9
14.00 NP$ (Donate)

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 10:54 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85