Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

assign css to non link title

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-08-2005, 05:25 PM
 
mrbiggles mrbiggles is offline
 

Senior Member
  
Join Date: Jan 2005
Location: Adelaide , South Australia
Posts: 107
 

Default 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]
__________________
www.creydall.com
X-Cart version 4.0.11
PHP 4.3.9 MySQL 4.0.22
Apache/1.3.33
Perl 5.008004
Adam
Adelaide South Australia
Reply With Quote
  #2  
Old 04-08-2005, 09:43 PM
 
mrbiggles mrbiggles is offline
 

Senior Member
  
Join Date: Jan 2005
Location: Adelaide , South Australia
Posts: 107
 

Default

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?
__________________
www.creydall.com
X-Cart version 4.0.11
PHP 4.3.9 MySQL 4.0.22
Apache/1.3.33
Perl 5.008004
Adam
Adelaide South Australia
Reply With Quote
  #3  
Old 04-09-2005, 04:32 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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>
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 04-09-2005, 04:38 PM
 
mrbiggles mrbiggles is offline
 

Senior Member
  
Join Date: Jan 2005
Location: Adelaide , South Australia
Posts: 107
 

Default

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.
__________________
www.creydall.com
X-Cart version 4.0.11
PHP 4.3.9 MySQL 4.0.22
Apache/1.3.33
Perl 5.008004
Adam
Adelaide South Australia
Reply With Quote
  #5  
Old 04-11-2005, 03:14 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Another way to do the same thing

Code:
<font class="VertMenuItemsl"> {$lng.lbl_contact_us}</font>
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #6  
Old 04-11-2005, 03:30 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 04-11-2005, 04:04 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:53 PM.

   

 
X-Cart forums © 2001-2020