Welcome, Guest
Please Login or Register.    Lost Password?

Unwanted border on banners
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Unwanted border on banners
#1172
Unwanted border on banners 3 Years, 8 Months ago Karma: 0
I've published a banner module in the left position so it displays a square-shaped banner below the menu items, but in iE7 and Firefox it has a border around it. How can I turn the border off? I can't see where to do it in the CSS and there's nowhere in the module parameters to do it.

PS - the border doesn't show in the new Google Chrome browser!
chiefinstructor@tracktuit
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1173
Re:Unwanted border on banners 3 Years, 8 Months ago Karma: 41
Hey Dude can you post a link?
Banner probably just needs border:0px applied someplace.
Big Bear
Administrator
Posts: 1004
graph
User Offline Click here to see the profile of this user
Joomla Templates
The administrator has disabled public write access.
 
#1179
Re:Unwanted border on banners 3 Years, 8 Months ago Karma: 0
Hi, yeah the site is www.andrewbaynham.com.

It's the CG-Lock advert below the menu's. Could also do with it centred in the coloumn as well.

Yeah, I realised it needs border='0' somewhere - but where? Somewhere in the CSS?
chiefinstructor@tracktuit
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1180
Re:Unwanted border on banners 3 Years, 8 Months ago Karma: 41
Hi,
Nice cars...

Try adding:

.banneritem img a {
border:0px;
}

You could also try that as one of the below but the above code is probably best:

.banneritem {
border:0px;
}

or,

img {
border:0px;
}

may also work as well.

TIP!!!

Grab the Firefox web developers toolbar - once installed you can hit CTRL-SHIFT-Y (together) and when you mouse over any element on the page it will tell you what css is influencing it.
Big Bear
Administrator
Posts: 1004
graph
User Offline Click here to see the profile of this user
Joomla Templates
Last Edit: 2008/09/09 14:08 By Big Bear.
The administrator has disabled public write access.
 
#1181
Re:Unwanted border on banners 3 Years, 8 Months ago Karma: 41
To center we want to target the div that surrounds the banner item and give it an align:center; or text-align:center;

Try:
div .banneritem {
text-align:center;
}
Big Bear
Administrator
Posts: 1004
graph
User Offline Click here to see the profile of this user
Joomla Templates
The administrator has disabled public write access.
 
#1182
Re:Unwanted border on banners 3 Years, 8 Months ago Karma: 0
Big Bear wrote:
Hi,
Nice cars...

Try adding:

.banneritem img a {
border:0px;
}

You could also try that as one of the below but the above code is probably best:

.banneritem {
border:0px;
}

or,

img {
border:0px;
}

may also work as well.

TIP!!!

Grab the Firefox web developers toolbar - once installed you can hit CTRL-SHIFT-Y (together) and when you mouse over any element on the page it will tell you what css is influencing it.


Thanks BB! Yeah we have some nice cars around... my main business is in motorsport as a driver and instructor. Andy Baynham is a freelance engineer and a friend who I've delt with for years and currently looks after the GT Porsche that my business partner owns (in the gallery on that site). We recently aquired it to use on track days - bought it off another friend of mine for £65,000 (app. $130,000), it's a genuine ex-factory Porsche GT3RS racing car that was £180,000 (app. $360,000) new in 2002.

Anyway, back to the point in question: where in the css am I adding this, anywhere, or in a specific module tag like in #left?


Big Bear wrote:
To center we want to target the div that surrounds the banner item and give it an align:center; or text-align:center;

Try:
div .banneritem {
text-align:center;
}


Will try both of these and see what happens! Cheers!

Tim
chiefinstructor@tracktuit
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1183
Re:Unwanted border on banners 3 Years, 8 Months ago Karma: 41
Hi Tim,

You can actually just add both fixes anywhere in the stylesheet - both those are classes so by anywhere I mean NOT within another class.

Just find a point after a closing } bracket and go for your life.

If unsure add them at the end of the stylesheet.


:side:
Dreaming of the day I'll own one of those porsches
Big Bear
Administrator
Posts: 1004
graph
User Offline Click here to see the profile of this user
Joomla Templates
Last Edit: 2008/09/09 14:49 By Big Bear.
The administrator has disabled public write access.
 
#1185
Re:Unwanted border on banners 3 Years, 8 Months ago Karma: 0
Big Bear wrote:
Hi Tim,

You can actually just add both fixes anywhere in the stylesheet - both those are classes so by anywhere I mean NOT within another class.

Just find a point after a closing } bracket and go for your life.

If unsure add them at the end of the stylesheet.


:side:
Dreaming of the day I'll own one of those porsches


OK the first two sets of code for the border didn't work, but the last one did:

img {
border:0px;
}

The alignment...

div .banneritem {
text-align:center;
}

...worked as well! Thanks!

If you ever come over to the UK I can at least give you a go in one of our Porsche's! :)
chiefinstructor@tracktuit
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1186
Re:Unwanted border on banners 3 Years, 8 Months ago Karma: 41
Thx Tim, I'll take you up on that offer if/when I'm in your neighborhood. :silly:
Big Bear
Administrator
Posts: 1004
graph
User Offline Click here to see the profile of this user
Joomla Templates
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Support
 
JOOMLA TEMPLATES Joomla Templates By JoomlaBear