SimplePortal

Customization => Custom Coding => Topic started by: Zirc on August 15, 2010, 01:25:02 PM

Title: How to different border color on certain block ID's?
Post by: Zirc on August 15, 2010, 01:25:02 PM
SMF 2.0 RC3
SP 2.3.2

Okay so I wanted nice borders around my blocks and changed the table.sp_block in portal.css to the color border I wanted.  Works perfectly except on my two center top blocks I do not want to have borders on them or at least change the color to the background color so you can't see them. 

How would I go about setting it up so for those two block ID's they can use a different css like say table.sp_block_z which I already set up in the portal.css?  I imagine I have to put some if/else statements for it in the portal.template.php but I've tried several different things and nothing has worked, it just keeps calling the standard sp_block code.

Here is the site if you want to take a look at it http://www.tholeweb.com/test

Thanks
Title: Re: How to different border color on certain block ID's?
Post by: Zirc on August 15, 2010, 06:10:24 PM
I'm going a different route with my theme and basing it off of Core so you can delete this.
Title: Re: How to different border color on certain block ID's?
Post by: smosmo on August 16, 2010, 12:58:24 PM
I stumbled upon the same problem when I was trying to edit the blocks on the side.

In order to only make the side blocks change you could try using:

#sp_left table.sp_block, #sp_right table.sp_block {
 ...
}
Title: Re: How to different border color on certain block ID's?
Post by: Zirc on August 16, 2010, 06:22:10 PM
Yeah that could work.  My current them with 1.1.11 is based off of Core and I'd like to keep it looking the way it is.  There are too many differences with the Curve theme that I just can't get it looking right.
SimplePortal 2.3.8 © 2008-2024, SimplePortal