•
•
•
•
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
![]() |
•
•
Join Date: May 2008
Location: Hyderabad, India
Posts: 258
Reputation:
Rep Power: 1
Solved Threads: 27
I have a small doubt in CSS style sheets
what is use of float tag in css?
and why it using ???
please reply me
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
Sreekanth
www.saap.in
if you problem solved add me as a reputation and mark it mark as solved
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.
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.
•
•
Join Date: Jun 2008
Posts: 16
Reputation:
Rep Power: 0
Solved Threads: 2
•
•
•
•
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.
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- CSS Rollovers and Youtube (HTML and CSS)
- Question about embedded CSS (HTML and CSS)
- Css floating problem (HTML and CSS)
- need css hack (HTML and CSS)
- Doubt in WordPress (PHP)
- Trying to use not tables, only CSS, but can I? (HTML and CSS)
- Dead End Pages (HTML and CSS)
- first website doesnt work well? (HTML and CSS)
- Offering free webdesign. (Post your Resume)
Other Threads in the HTML and CSS Forum
- Previous Thread: someone please explain why IE adds whitespace between images, Firefox does not
- Next Thread: Space Between Tables in IE



Linear Mode