-
AuthorPosts
-
July 20, 2010 at 8:17 am #152693
Hi all.
I’ve got banner in user 1 and in right position.
How can I center banners in these positions ??gray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
July 20, 2010 at 7:14 pm #350348If the banner is an image try by adding in template.css
#Mod0 {
display: block;
margin-left: auto;
margin-right: auto
}July 27, 2010 at 10:12 am #350903The banner is an image, but the code doesn’t work.
Any ideas ?TAnne Mills FriendTAnne Mills
- Join date:
- September 2014
- Posts:
- 88
- Downloads:
- 28
- Uploads:
- 6
- Thanks:
- 38
- Thanked:
- 14 times in 1 posts
July 27, 2010 at 12:29 pm #350915Can you post your URL?
gray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
July 27, 2010 at 4:32 pm #350935<em>@gray 187090 wrote:</em><blockquote>If the banner is an image try by adding in template.css
#Mod0 {
display: block;
margin-left: auto;
margin-right: auto
}</blockquote>Try the following:
#Mod0 {
text-align:center;
margin-top:0px;
margin-bottom:0px;
padding:0px;
}And make sure the div in which the respective image is placed have class=Mod0. Otherwise apply respective class/id to the CSS style declaration.
July 28, 2010 at 9:10 am #351031url: beta.erp-portal.pl
banner under main menu and banner in right modulegray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
July 28, 2010 at 10:29 am #351044Banner under main menu in placed in
<div class=”banneritem”><div>
The one in the right module in
<div class=”bannergroup”></div>Just create new CSS style declarations like
div.banneritem {
display: block;
margin-left: auto;
margin-right: auto;
margin-top: auto;
margin-bottom: auto;
}
or try the second variant I proposed above.July 29, 2010 at 6:25 am #351135It doesn’t work. When I set for example margin-left: 100px banner changes position, but auto does nothing ?
gray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
July 29, 2010 at 8:54 am #351148<em>@kokosz_mk 188119 wrote:</em><blockquote>It doesn’t work. When I set for example margin-left: 100px banner changes position, but auto does nothing ?</blockquote>
I checked with your site. For the banner under main menu, worked <div class=”banneritem” style=”text-align:center;”>.
It worked to the one at the right module.So, just apply
div.banneritem {
text-align:center;
}
and check in different browsers (I worked in Opera).Hope it helps.
1 user says Thank You to gray for this useful post
lamvt Friendlamvt
- Join date:
- December 2006
- Posts:
- 265
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 6
- Thanked:
- 52 times in 46 posts
July 29, 2010 at 9:01 am #351151Open your template: http://beta.erp-portal.pl/templates/ja_teline_iii/css/template.css
Line 1201#ja-topsl .moduletable {
border-bottom:0 none;
}Chnages to:
#ja-topsl .moduletable {
border-bottom:0 none;
text-align:center;
}1 user says Thank You to lamvt for this useful post
-
AuthorPosts
This topic contains 11 replies, has 4 voices, and was last updated by kokosz_mk 14 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum