...

View Full Version : CSS: float and position



1234m
11-28-2008, 03:45 AM
If I use float can I still position it?

for example:

#text { float: left;
and then somehow position it a few pixels in different directions?

thank you in advanced

drhowarddrfine
11-28-2008, 05:12 AM
Try it and find out but, yes, you can.

jhaycutexp
11-28-2008, 05:16 AM
If I use float can I still position it?

for example:

#text { float: left;
and then somehow position it a few pixels in different directions?

thank you in advanced

of course you can..

in your code above, you position them by adding some layout properties like.. margin padding line-height.. etc..

for example


text { float: left;
margin:10px 0 10 0px;
padding:10px;
position:relative;
bottom:200px;
}


there's so many ways, you just have to know what and which is which...

1234m
11-28-2008, 05:17 AM
ohh thank you very much :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum