Text width aligned with picture

Advanced and professional portal news Joomla template with community features and various content display layouts.
GK User
Sat Aug 11, 2012 11:15 am
Hello,
The pictures in my articles are set up to have a width of 540px and I would like the text to have the same width and centered. Please, see illustrative picture.
What is the code that I should place in css/override.css? Thanks
User avatar
Junior Boarder

GK User
Sat Aug 11, 2012 12:57 pm
Which article system are you using , joomla articles or K2 items.
User avatar
Platinum Boarder

GK User
Sat Aug 11, 2012 3:40 pm
Hi Norman,
I am using K2... I know that you do not provide support for K2.
I suppose that it is just a matter of changing a line in the ccs code and putting it in the override file but I don't find that line.
User avatar
Junior Boarder

GK User
Sat Aug 11, 2012 3:57 pm
You can try any one of below css codes depending on your usage and k2 options.

Main K2 Container
Code: Select all
#k2Container { width:540px; }


Header Container such as titles.
Code: Select all
.itemHeader { width:540px;}


Body container including image
Code: Select all
.latestItemBody, .genericItemBody, .userItemBody, .catItemBody, .itemBody { width:540px;}


Image Container
Code: Select all
.userItemImageBlock, .itemImageBlock { width:540px;}


Intro Text Container
Code: Select all
.latestItemIntroText, .genericItemIntroText, .userItemIntroText, .catItemIntroText, .itemIntroText { width:540px;}


Full text Container
Code: Select all
.itemFullText { width:540px;}


See you around...
User avatar
Platinum Boarder

GK User
Sat Aug 11, 2012 4:59 pm
Hi Norman,
I have used .latestItemBody, .genericItemBody, .userItemBody, .itemBody { width:540px;}
and it's working. I have just removed the part related to Category Listing as I have two columns and there was text of both columns mixed.
Thanks a lot, much appreciated
Regards,
Marc
User avatar
Junior Boarder

GK User
Sun Aug 12, 2012 3:54 am
No problem at all, see you around...
User avatar
Platinum Boarder


cron