473,221 Members | 2,199 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,221 software developers and data experts.

How Can I Override CSS in Sidebar for 1 Section?

I am trying to override the default CSS text & link formatting for the right sidebar of my website. I am trying ot paste a 200x200 ad in the sidebar but want to be able to format it independently of how the CSS is formatting the rest of the sidebar.

For example, the links on the sidebar are all italicized & in orange, but I want them to be the standard blue and non-italicized. I tried encasing the html in a table with different formatting, but that did not work.

The Google ads that are on the site are not affected by the CSS but I don't know much about javascript or how to intiate a similar fix.

Any suggestions?
Aug 30 '07 #1
1 1365
markrawlingson
346 Expert 100+
There are three ways to apply CSS :

1) Apply it globally over every single tag element on the page
IE: a { color:orange;}
This will take effect over every single link on the page, except for those which you've defined a different "class" for.

Or

2) set the style statically for each element by its class name or id
IE: a.subMenuLink { color:blue }
This will take effect over all the links on the page which you've defined as class="subMenuLink"
<a href="whatever.html" class="subMenuLink">whatever link</a>

Or

3) Set the style statically inside of each tag itself.
IE: <a href="whatever.html" style="color:blue;">whatever link</a>
This will ONLY affect this particular link.

Option #2 or #3 should solve your problem. They will override your CSS for global link style and apply a different style to just the links you wish it to.
Aug 30 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Stan R. | last post by:
Greetings. I have a couple of questions concerning CSS layouts, as apposed to the old <tablemethod for creating layouts . Even after spending the last few days searching all over Google Groups, I...
14
by: Mark | last post by:
please view http://mnbayazit.com/misc/sample.gif i'm wondering how i can make the sidebar (green) float to the right of the main text, without specifying the width of the main content (because...
1
by: pixelfreaks | last post by:
Hello, I am having a problem in aligning the sidebar and content area in a webpage. I am using css. Consider the below layout. __________________________________________ | ...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.