![]() |
assign css to non link title
Hello
I am in the middle of creating a menu in a dialog box. I have created a new entry in css and can change the links such as to a different style, than others in the same box. my question is how do I assign css to a title only, for example the following. Code:
{$lng.lbl_contact_us}</A> I am guessing I have to add Code:
class="VertMenuItemsl" somewhere next to the label but I just dont have the brainpower to figure it out. The reason for doing this is that I want my menu to look like the following Processors (title-different font, different font size, and not linked) Athlon Semperon Pentium 4 (these will link directly to the corresponding categories and be of standard font size) Regards Adam[/code] |
Hello
Worked it out For anyone who wants to know this in future it is Code:
<A " class="VertMenuItemsl"> My only question is what does the A designate? |
That is actually not correct Adam. The A tag is used to designate a link, if you don't have a link, you don't need it. Just use a span tag like this:
Code:
<span class="VertMenuItemsl"> |
Thanks Balinor
I was using a trial and error method, and got the result I wanted, I will now modify them so they are correct. |
Another way to do the same thing
Code:
<font class="VertMenuItemsl"> |
I don't believe it, but I am actually going to disagree with Shan on something! :) The <font> tag is a depreciated tag, meaning it is no longer standards compliant. While it technically still works, it should be avoided. The <span> tag achieves the same effect.
|
Quote:
lol, i thought that as i typed it :lol: |
All times are GMT -8. The time now is 11:05 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.