User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 403,037 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,860 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 345 | Replies: 3
Reply
Join Date: May 2008
Location: Hyderabad, India
Posts: 258
Reputation: sreein1986 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 27
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz in Training

CSS doubt

  #1  
Jun 17th, 2008
I have a small doubt in CSS style sheets
what is use of float tag in css?
and why it using ???
please reply me
Thanx,
Sreekanth

www.saap.in
if you problem solved add me as a reputation and mark it mark as solved
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2007
Posts: 178
Reputation: macneato is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 12
macneato's Avatar
macneato macneato is offline Offline
Junior Poster

Re: CSS doubt

  #2  
Jun 17th, 2008
Hi sreein,

This is the way I understand it, If you don't want to use relative positioning. Float would be your next bet. I use it mainly for layouts. But people do use it for images as well.

Here a nice little article on it, that explains it in a lot more depth and detail I ever could.

Click here

All the best.
If this reply solved your problem, please add to my reputation and don't forget to mark this thread as solved.
Reply With Quote  
Join Date: Jan 2007
Posts: 2,537
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 111
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: CSS doubt

  #3  
Jun 19th, 2008
Float tells the browser whether to make the text flow to the left or the right of an object.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Jun 2008
Posts: 16
Reputation: icorey has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 2
icorey icorey is offline Offline
Newbie Poster

Re: CSS doubt

  #4  
Jun 19th, 2008
Originally Posted by MidiMagic View Post
Float tells the browser whether to make the text flow to the left or the right of an object.


i think that's the reverse of float. float makes elements "float" in the surrounding elements--to the left or right of those elements. the other elements (like text) just wrap around the floated element (like in word when you set the text wrapping around something).

you need to watch out though: floated elements take up no vertical space, you need to plan for that, usually by using the clear tag (which stops elements from floating to the left/right/both sides of an element.

also, using float is way easier than relative positioning. the only thing you need to watch out for is floated elements not taking up space.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 11:16 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC