X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   assign css to non link title (https://forum.x-cart.com/showthread.php?t=13321)

mrbiggles 04-08-2005 05:25 PM

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]

mrbiggles 04-08-2005 09:43 PM

Hello

Worked it out
For anyone who wants to know this in future it is

Code:

<A " class="VertMenuItemsl">
{$lng.lbl_contact_us}</A>


My only question is what does the A designate?

balinor 04-09-2005 04:32 AM

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">
{$lng.lbl_contact_us}</span>


mrbiggles 04-09-2005 04:38 PM

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.

shan 04-11-2005 03:14 AM

Another way to do the same thing

Code:

<font class="VertMenuItemsl">
{$lng.lbl_contact_us}</font>


balinor 04-11-2005 03:30 AM

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.

shan 04-11-2005 04:04 AM

Quote:

Originally Posted by balinor
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.


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.