Page 1 of 1

.bg1 border question

Posted: Tue Aug 17, 2010 6:21 pm
by HarderStylez
I got a question about the .bg1 part of colours.css but I don't know if it's even possible.
Well i'm trying to add a border to this post;

Image

But I found out it was also adding it for this part;

Image

So now I want a border on img1 (2nd post) but not on img2 (topics).
Could someone plz help me or tell me if this is even possible?

Thx in advanced,
Xqlusive

Re: .bg1 border question

Posted: Wed Aug 18, 2010 2:13 am
by topdown
The easiest way is to just add a new class to the CSS and the template where you want the boarder.
Leaving the bg1 class for the color.
eg class="bg1 my-new-class"

Re: .bg1 border question

Posted: Wed Aug 18, 2010 10:06 am
by HarderStylez
Ok, thanks.
But in which template do I need to be?

Re: .bg1 border question

Posted: Thu Aug 19, 2010 6:36 pm
by HarderStylez
**bump**

Re: .bg1 border question

Posted: Fri Aug 20, 2010 9:23 am
by PlanetStyles.net
Open: /styles/prosilver/template/overall_header.html

Find:

Code: Select all

<div id="page-body">
Replace with:

Code: Select all

<div id="page-body" <!-- IF SCRIPT_NAME eq 'viewtopic' -->class="viewtopic"<!-- ENDIF -->>
Then in colours.css, find:

Code: Select all

.bg3	{ background-color: #cadceb; }
After, Add:

Code: Select all

.viewtopic .bg2 {border: 2px solid #FF0000;}

Re: .bg1 border question

Posted: Fri Aug 20, 2010 4:23 pm
by HarderStylez
That did it! Thanks alot, man.