Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1183
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

How to different border color on certain block ID's?

Started by Zirc, August 15, 2010, 01:25:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zirc

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

Zirc

I'm going a different route with my theme and basing it off of Core so you can delete this.

smosmo

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 {
...
}

Zirc

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.