Solved

Best Practice CSS floating images

Posted on 2016-11-18
2
15 Views
Last Modified: 2016-11-18
Hi- On many of my web pages, I use this style on images:  style="float:left;padding-right:10px;" or  style="float:right;padding-left:10px;".

Do I have to clear those floats? Is there a problem if I don't? The pages seem fine to me. Thanks.
0
Comment
Question by:mel200
2 Comments
 
LVL 16

Accepted Solution

by:
SSupreme earned 500 total points
Comment Utility
You don't have to as long as it looks like you want. There is no problems with that. As alternative you can use img align attribute, examples of application you can find here .
0
 

Author Closing Comment

by:mel200
Comment Utility
Thanks, I am so glad to hear that! Thanks for the link, I'll investigate.
1

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now