Solved

Best Practice CSS floating images

Posted on 2016-11-18
2
33 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn how to count occurrences of each item in an array.

867 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

21 Experts available now in Live!

Get 1:1 Help Now