CSS Inheritence
Posted: 01 June 2010 12:26 AM   [ Ignore ]
Newbie
Rank
Total Posts:  1
Joined  2010-06-01

New to CSS and need help overiding inherited CSS file.
My font is inheriting the the styles/master.css information.
How do I overide it and include my own styles?


********** CODE ********************
<link href=“styles/master.css” rel=“stylesheet” type=“text/css”>

<style>
.quotefont {
text-align:left !important;
text-decoration:underline !important;
}
</style>
.
.
.
<font class=“quotefont”>“This font should be aligned left and underlined but it’s not.”</font>
********** CODE ********************

Profile
 
 
Posted: 03 June 2010 12:29 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  6
Joined  2010-06-03

hi,
Suppose you have a table and you need to give styles to all the <TD> tags. Using inheritance to do this helps you avoid generating more content to be delivered to the client. Take this code, for example:


<table>
<td class=Cell></td>
<td class=Cell></td>
<td class=Cell></td>
</table>

This can be replaced with the following style sheet :


Table.Cell TD
{
 
}

<table class=Cell>
<td ></td>
<td ></td>
<td ></td>
</table>


Scion xB Parts

Profile
 
 
Posted: 07 August 2010 05:10 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  1
Joined  2010-08-07

good stuff!

Kansas City SEO

Profile