Webmaster Forum
Go Back   Webmaster Forums UK SEO SEM Webmaster Community Forum > Web Design and Website Development > Programming > CSS Forums
Register FAQ Members List Downloads Calendar Search Today's Posts Mark Forums Read Webmaster Resources Webmaster Blogs

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-12-2008, 05:26 PM
espmartin's Avatar
Senior Member
 
Join Date: Jun 2007
Location: West Coast, USA (California)
Posts: 962
iTrader: 0 / 0%
espmartin will become famous soon enough
Default Floats Or Absolutes?

For you CSS designers out there, I'd like to ask if you had a web design that
you would prefer to be laid out a certain way - do you prefer floats or positioning?

Both have their benefits and drawbacks, but both can do the job for specific
layouts. I actually love using both. I'll do floats on one site, then do AP
(Absolute Positioning) on another. They are - unless you have a specific layout
that only can be achieved by AP - interchangeable at times.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 08:18 PM
SkinnerW's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 1,353
iTrader: 0 / 0%
SkinnerW is just really niceSkinnerW is just really niceSkinnerW is just really niceSkinnerW is just really niceSkinnerW is just really nice
Send a message via Yahoo to SkinnerW
Default

Most of the time you need combination of both to achieve the best (or desired) result
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 09:00 PM
xhan's Avatar
Design Photo & Graphics Admin
 
Join Date: Jan 2008
Location: London/Kent
Posts: 462
iTrader: 0 / 0%
xhan is on a distinguished road
Send a message via AIM to xhan Send a message via MSN to xhan Send a message via Yahoo to xhan
Default

I used to use absolute all the time but thats only cos I didn't know about floats - now I always float - its amazing what you can do with margin!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this Post!
Reply With Quote
  #4 (permalink)  
Old 01-13-2008, 08:53 AM
Distinguished Member
 
Join Date: Jan 2008
Posts: 163
iTrader: 0 / 0%
smeagain is on a distinguished road
Default

There are good reason to use both in the right places.

Float Example
float:left is extremely useful for step and repeat in CMS when horizontal rows have more than one output. By this I mean say a div 250x250 containing a product pulled from the Database by a qualifued query which needs to appear in 3 rows of 3.That is something that is verrrrry difficult to achieve reliably any other way.

Absolute Example
Absolute is the only way to pin a Graphic Banner to the top of your page while putting it last in the HTML running order to allow the H1 tag to be first in the body.

The question Absolute or float is simmilar to the age old question "Tables or CSS" there is no absolute answer, excuse the pun. Both have their uses and trying to work a table free design when part of the page is crying out for a table is often a source of quirky CSS sometimes requiring Browser Hacks.

Most times, there is more than one way to achieve positional control but frequently one method is actually far more appropriate for various reasons. However many designers choose the method they feel most comfortable with and that does not always produce the best results.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this Post!
Reply With Quote
  #5 (permalink)  
Old 01-13-2008, 09:24 AM
Senior Member
 
Join Date: Jan 2006
Posts: 770
iTrader: 0 / 0%
darkstar_tfd is a name known to alldarkstar_tfd is a name known to alldarkstar_tfd is a name known to alldarkstar_tfd is a name known to alldarkstar_tfd is a name known to alldarkstar_tfd is a name known to all
Default

I mostly use floats.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this Post!
Reply With Quote
  #6 (permalink)  
Old 01-14-2008, 05:01 PM
espmartin's Avatar
Senior Member
 
Join Date: Jun 2007
Location: West Coast, USA (California)
Posts: 962
iTrader: 0 / 0%
espmartin will become famous soon enough
Default

floats with negative margins - that's MY baby
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this Post!
Reply With Quote
  #7 (permalink)  
Old 01-19-2008, 11:28 PM
BenjArriola's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Manila and San Diego
Posts: 134
iTrader: 0 / 0%
BenjArriola is on a distinguished road
Send a message via ICQ to BenjArriola Send a message via AIM to BenjArriola Send a message via MSN to BenjArriola Send a message via Yahoo to BenjArriola Send a message via Skype™ to BenjArriola
Default

Most of the time floats. I rarely use absolute for main elements of a page. most of the time I use absolutes are in special type of navigations where I control the position of the <a> tag within a CSS image replacement.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this Post!
Reply With Quote
  #8 (permalink)  
Old 01-20-2008, 10:43 AM
bochgoch's Avatar
Senior Member
 
Join Date: May 2007
Posts: 330
iTrader: 0 / 0%
bochgoch is on a distinguished road
Default

Personally I avoid absolutes as they are such a pain to get perfect across all browsers. I'm a floater!
__________________
Small but perfectly formed ~ Welsh Directory
Barn Conversion Advice
Live Healthy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this Post!
Reply With Quote
Reply


Useful Resources & Sites
Search Engine Marketing Company
UK Web Hosting
Build One Way Links
 
 
 
Thread Tools
Display Modes

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



All times are GMT. The time now is 04:01 PM.

UK Webmaster World Forums - Internet marketing, web development, domain names, SEO contest and discussuons.
Subscribe to our feeds   Subscribe to our feeds

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0