.bg1 border question

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
Locked
HarderStylez
Registered User
Posts: 4
Joined: Wed Aug 04, 2010 2:21 pm

.bg1 border question

Post 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
User avatar
topdown
Registered User
Posts: 635
Joined: Wed Sep 19, 2007 5:16 pm
Location: NE Wisconsin
Name: Jeff Behnke
Contact:

Re: .bg1 border question

Post 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"
HarderStylez
Registered User
Posts: 4
Joined: Wed Aug 04, 2010 2:21 pm

Re: .bg1 border question

Post by HarderStylez »

Ok, thanks.
But in which template do I need to be?
HarderStylez
Registered User
Posts: 4
Joined: Wed Aug 04, 2010 2:21 pm

Re: .bg1 border question

Post by HarderStylez »

**bump**
User avatar
PlanetStyles.net
Former Team Member
Posts: 4665
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: .bg1 border question

Post 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;}
HarderStylez
Registered User
Posts: 4
Joined: Wed Aug 04, 2010 2:21 pm

Re: .bg1 border question

Post by HarderStylez »

That did it! Thanks alot, man.
Locked

Return to “[3.0.x] Styles Support & Discussion”