All images is floating left

GK User
Thu Jun 09, 2011 5:32 pm
All images in all my articles floates left. But i haven´t set them to float left in the article editor.

In articles with several images the float left thing makes them look realy bad, ex: http://www.fotoforalla.se/artiklar/foto ... f-maj-2011

How can I get my images to not float left?
User avatar
Platinum Boarder

Konrad M
Fri Jun 10, 2011 6:18 am
Hi
You can add to override.css
Code: Select all
.articleContent img {
float:none;
}

and remember to enable override.css option in template settings
User avatar

GK User
Fri Jun 10, 2011 9:17 am
Thanks! It worked perfectly!
User avatar
Platinum Boarder

Konrad M
Fri Jun 10, 2011 9:20 am
I'm glad I could help :D
User avatar

GK User
Fri Jun 10, 2011 6:10 pm
How do I activate it?
User avatar
Fresh Boarder

GK User
Fri Jun 10, 2011 10:54 pm
Hi

There's no need for that.
Please open ../css/joomla.css file and find this line:

Code: Select all
.articleContent img,
.feed-item-description img { float: left; margin: 0 10px 10px 0; display: block; padding: 5px; background:#fff; }


replace with:
Code: Select all
.articleContent img,
.feed-item-description img { margin: 0 10px 10px 0; display: block; padding: 5px; background:#fff; }
.feed-item-description img { float: left;}


Now by default floating image position will be none and you can align left or right while adding on the content.
User avatar
Platinum Boarder


cron