-
AuthorPosts
-
johnzhel Friend
johnzhel
- Join date:
- December 2010
- Posts:
- 9
- Downloads:
- 0
- Uploads:
- 2
- Thanked:
- 1 times in 1 posts
December 13, 2010 at 3:15 am #157367In wiki, I found:
<block name="top-spotlight" type="spotlight" special="left" specialwidth="25">user1,user2,user3,user4,user5</block>
What if I want to change user3’s width to 50%? What is the best way?
I try to write in template.css in mytemplate_foldercss like this:
#ja-topsl .ja-box-center {width: 50%}
But, this line got overwritten (see attached screen shot image). In this example, I placed modules in user1, user3, user5, so each block occupies 33.3% width. I want to make them 25%, 50%, 25%, respectively.
Thank you for your help in advance!:)
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 13, 2010 at 9:06 am #366520Dear johnzhel!
The best way you should change theirs width is via xml configuration as per the wiki documentation.
If you use css code to control the width, you will need to add the important property after each attribute
right:
#ja-topsl .ja-box-center {width: 50%!important}
March 31, 2011 at 11:51 am #384269Hello,
im using position: user6,7,8,9,10 , and i need change width user 7,8,9 but need 3 difrent width.
Im found a xml find witch postions, how i can set special width in this file for specyfic item ??Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
April 2, 2011 at 3:14 am #384516Hi Kamil, consult this:
<blockquote>Custom width
Expression: <block name=”top-spotlight” type=”spotlight” special=”left” specialwidth=”25″>user1,user2,user3,user4,user5</block>
Purpose: – this will override the default 20% width for a single position within the layout, it could be the one in the right side, it could be the one in the left side, but let’s examine these parameters closer:
special=”left” – this defines where is the module we want to use the custom width: left or right
specialwidth=”25″ – this defines the new width value for this module within the spotlight block.</blockquote>
http://wiki.joomlart.com/wiki/JA_T3_Framework_2/Guides#Custom_column_widthAuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 4 voices, and was last updated by Ninja Lead 13 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
How to custom width of blocks in top spotlight?
Viewing 4 posts - 1 through 4 (of 4 total)