Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How do I override this CSS selector?

Reply
Thread Tools

How do I override this CSS selector?

 
 
jrockman13 jrockman13 is offline
Junior Member
Join Date: Jun 2010
Posts: 1
 
      06-02-2010
There are probably a ton of these, and I did try reading some and searching for an obvious answer...

page can be found at cbcneenah1.info/staff.html

I use firebug on FF to view the CSS code...

There are multiple css files called on the page. I believe the cascade priority is:

core.css
custom.css
workforce.css

The image of the staff member is aligned in a way I don't like. I want it to align left with the text.

core.css contains this code:

Quote:
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
background:none repeat scroll 0 0 transparent;
border:0 none;
font-size:100%;
margin:0;
outline:0 none;
padding:0;
vertical-align:baseline;
}
I know what I need to change or remove is the "vertical-align" property. The trouble with editing the core.css is that it will affect the entire site.

The image is nested inside these tags:
Quote:
<div style="width: 100px;" class="wf_employee_photo">
<a href="/staff.html?view=employee&amp;id=5">
<img border="0" width="100" alt="Renee Swinford" src="/media/com_workforce/employees/swinford_renee.jpg">
</a>
</div>
I can add an override to any of the CSS files, although I would prefer to edit the custom.css file.

What do I need to override? thanks!
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Can't override CSS class!!! Jibba Jabba HTML 11 09-29-2007 11:14 PM
Can you override the "<big>" tag with CSS? Nocturnal HTML 3 07-06-2006 11:08 PM
IE6 link colors & CSS override (vs. Firefox) Woodmon HTML 20 10-22-2005 10:12 PM
CSS override trouble Andreas Paasch HTML 3 07-10-2003 11:42 AM



Advertisments