I'm assuming this is due to the span code in the first example, but after having looked around I can't seem to find out what is wrong with this!
Any help would be much appreciated!!!
Thanks!
sticks464
Joined: 31 Dec 2006
Posts: 2311
Posted: Sat Oct 24, 2009 12:41 pm
What exactly are you trying to accomplish with the span tag?
leelee23
Joined: 24 Oct 2009
Posts: 2
Posted: Sat Oct 24, 2009 1:07 pm
I wanted the first part of the text within the link to be bold and the second not to be (but the other font attributes that were listed in the css file to be the same) hence the two different classes within the statement.
Hopefully aiming for something like this:
e.g. Shopping Cart: 1 Item
sticks464
Joined: 31 Dec 2006
Posts: 2311
Posted: Sat Oct 24, 2009 3:00 pm
In you stylesheet there should be a style rule for "headerlinks" that is written something like
Code: a.headerlinks {...}
To get what you want...
Code: <a href="http://www.blabla.com/catalog/shopping_cart.php" class="headerlinks"> <span>Shopping Cart:</span> 1 Item (£64.95)</a> |
You will have to write a rule for the span;
css
Code: a.headerlinks {
color:#000;
text-decoration:none;
}
a.headerlinks span{
font-weight:bold;
}
For any link with the class="headerlinks" just put a span tag around the text you want to be bold.
Labhrainn Aemilianus
Joined: 06 Nov 2009
Posts: 2
Posted: Sat Nov 07, 2009 12:45 am HTML Span
if the span you are talking about is a table column span or a span tag. If the span tags are used and you do not want the effects then delete the open and close span tags. If it is a column span then you will need to remove the column span and add enough additional td tags to make up the difference.