Solved

Best Practice CSS floating images

Posted on 2016-11-18
2
40 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
ID: 41893159
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
ID: 41893173
Thanks, I am so glad to hear that! Thanks for the link, I'll investigate.
1

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ASP.net Fit 3 divs on screen side by side 3 26
Only three borders showing on image 5 19
paypal ipn url 5 57
DataTables + iCheck + pagination Issue 2 17
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

770 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