Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Altering CSS in a wordpress theme
Old 11-08-2008, 11:53 AM Altering CSS in a wordpress theme
pathfinder_05's Avatar
Experienced Talker

Posts: 38
Name: DB
Trades: 0
Hi guys,

I am having trouble changing the text colour in a wordpress theme.

The text is a link and is in a sidebar but it is being over written by a main command for all text link colours. In a normal html document I would know what to do but wordpress is a bit different.

Here is the sidebar code.....

#sidebar-left {
background:#98A4B0 none repeat scroll 0 0;
border:2px solid #000000;
float:left;
font-size:1em;
margin-left:20px;
padding:0.5em 0.2em 2em 1em;
width:198px;
}


.....and somewhere else in the CSS is this....

a {
color:#475D74;
text-decoration:none;
}

Anyone any ideas?

Cheers.

DB
__________________

Please login or register to view this content. Registration is FREE
pathfinder_05 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-08-2008, 12:07 PM Re: Altering CSS in a wordpress theme
Webtechi's Avatar
Novice Talker

Posts: 6
Name: Danny
Trades: 0
You need to add

a.sidebar-left {
style stuff
}

it will then override the default "a" style
Webtechi is offline
Reply With Quote
View Public Profile
 
Old 11-08-2008, 12:59 PM Re: Altering CSS in a wordpress theme
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
a.sidebar-left { would refer to an <a>nchor element with a class of sidebar

to style an <a>nchor that is a child node of sidebar-left use

.sidebar-left a {
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-08-2008, 01:15 PM Re: Altering CSS in a wordpress theme
pathfinder_05's Avatar
Experienced Talker

Posts: 38
Name: DB
Trades: 0
Sorry to mess you around guys.

There was another section near the bottom of the CSS page on 'sidebars'.... I feel an ***, but am left wondering why all relevant info wasn't put near each other.

With over 600 lines of code a newbie gets a little lost....also I relied to heavily on Firefox's Firebug to help finding the problem areas instead of manually looking.

Lesson learnt.

DB
__________________

Please login or register to view this content. Registration is FREE
pathfinder_05 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Altering CSS in a wordpress theme
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13108 seconds with 12 queries