Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Column and row dividers (like V4.5)
Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
Offline
Jan 15, 2012 - 12:50 pm

So I need to add a css statement to where the spColumnSection tagClass is defined. Now where would that be my good people? I am only just getting the hang of these tag classes, I can see the power of the approach though. It's obvious even to a newbie.

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
Offline
Jan 16, 2012 - 4:29 am

Er.....

Where is the spColumnSection tagClass css defined and how can I alter it so that I can pass border parameters as Brandon suggested in post 7 of this thread.

Conrad

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jan 16, 2012 - 3:43 pm

What browser do you use Conrad? And please do not say IE 🙂
Safari, Chrome, Opera could all be good answers though

andy-signature.png
YELLOW
SWORDFISH
Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
Offline
Jan 17, 2012 - 6:19 am

I use Firefox 9.0.1 and Chrome 16.0.912.75 m, Firefox with firebug to figure stuff out and check little tweaks but obviously not that proficient as yet. When things look right on those two browsers I will then check on all the others I can get my hands on, including iPad's, iPhone and various Android platforms.

But I'd really really really like to know how to have the columns only in group and forum view please, not globally. So I need to find out how to change the spColumnSection tagClass definition to allow the border right parameter to be passed as an argument.

Please help, I've tried to figure it out and now its making my head hurt.

Conrad

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jan 17, 2012 - 8:20 am

Well as Steve pointed out in post 8 on this thread, border is not an available argument as it styling.

All columns are given the same class by default. In fact mostly they are given two classes - 'spColumnSection' and 'spRight' or 'spLeft'

These are the defaults. You can change those to something else wherever you want. So if you want one to have a completely different set of styling rules you can define your own class in your CSS file and change it in the function's tagClass argument.

Another way would be to define a simple class in your CSS file with just, for example, a border-right setting. So this could be something like:

.susan { border-right: 1px solid black; }

Then in the template function call instead of passing:

'tagClass=spColumnSection spRight' - you could pass:

'tagClass=spColumnSection spRight susan'

which would then apply the .susan class to that instance of the column.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
Offline
Jan 17, 2012 - 7:06 pm

This is the WP theme CSS style.css file right? No joy I'm afraid.

I can see this

<div style="width: 6%; min-height: 50px columnguide;" class="spColumnSection spLeft">

So the columnguide class is being applied to the spColumnSection but it looks as though the CSS file is not doing the expected. I have put the class columnguide at the top of the Main Content section of my CSS file with the other classes. I dunno then........

Conrad.

Avatar
Brandon
U.S.
SP Wrangler
Free Members
Offline
Jan 17, 2012 - 8:42 pm

Conrad, using Andy's example above you should be able to do this.

In your SP theme file, IE Default.php you will see at the top something that says "Some base, useful classes"

 

Under that you could create your classes for your border.

Like this:

#spMainContainer .spSusanR {

border-right: 1px solid black;
}

 

#spMainContainer .spSusanL {

border-left: 1px solid black;
}

 

Then use it like this: 'tagClass=spColumnSection spRight spSusanR'

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
Offline
Jan 18, 2012 - 7:05 am

Hurray and the penny dropped so far it nearly went through my skull.

Never mind susan mine is called spColumnGuideL and friend spColumnGuideL.Showing me that has opened up a whole world of possibilities, thanks all of you!

Conrad

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jan 18, 2012 - 8:13 am

So we can close this one?
And nobody asked me why I used Susan ! So I am not going to tell anyone...

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625