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

button classes dont display correctly

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-07-2005, 06:59 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default button classes dont display correctly

I want to move buttons from 1 table location into another but when I do that my button classes don't display correctly.

Here is a link show a graphic of my problem:
http://www.michaelmoskva.com/image7profile/buttonsdisplay.htm

I posted the code. If someone can take a look at it and help me out.

Here is my code for the center table were the button are giving me trouble. Its located at the line that says <img src> "A href"
Code:
<td><table border="0" width="100%" cellpadding="0" cellspacing="1"> <tr> <td class=NavDialogBox_ width="50%" valign=top> <font class=SubHeader2>[img]{$ImagesDir}/spacer.gif[/img]{$login}</font> <font class=SubHeader2>[img]{$ImagesDir}/spacer.gif[/img]{$lng.txt_email_preference}{$lng.txt_email_confirmations}</font> [img]{$ImagesDir}/spacer.gif[/img] <span>{$lng.lbl_modify_profile}</span> [img]{$ImagesDir}/spacer.gif[/img] <span> {$lng.lbl_delete_profile}</span> <table border="0" width="100%" cellpadding="0" cellspacing="1" align="center" class=NavDialogBox_> </table></td>

Here is my code for the buttons that are display correctly. Its located at the "onclick":
Code:
<table border="0" cellpadding="0" cellspacing="0"> <tr height=25> <td onClick="javascript:self.location='register.php?mode=update'" class=new_button_gr style='cursor:pointer' align=center>{$lng.lbl_modify_profile}</td><td width=4></td> <td onClick="javascript:self.location='register.php?mode=delete'" class=new_button_gr style='cursor:pointer' align=center>{$lng.lbl_delete_profile}</td><td width=4></td> <td onClick="javascript:self.location='orders.php'" class=new_button_gr style='cursor:pointer' align=center>{$lng.lbl_orders_history}</td><td width=4></td> </tr>
[/b]
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #2  
Old 11-07-2005, 07:05 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Well, the first thing that jumps out at me is that you are using the same class for the image (in the first code bit) as you are for a table cell (in the second code bit).

Untill we see what is in the CSS for that class, and also know what it is that you are trying to accomplish and what is not showing up that you expect to see - it is difficult to tell.
Reply With Quote
  #3  
Old 11-07-2005, 07:32 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

I want the buttons in the center of the table to look link the buttons I have displayed at the bottom left of the page. The buttons in the center table have a different font color displaying and it has rollover states. It should look like the buttons displaying below them; with no-rollover states and have a red txt font displaying not blue?

http://<a href="http://www.michaelmoskva.com/xcart/my_account.php" target="_blank">http://www.michaelmoskv...ccount.php</a>

I adjusted the location of <font> tag but that didnt help any; and i also removed the <span> tags but that didn't help any either?

Here is my css button code:

Code:
} .new_button_gr { COLOR: #ff3300; FONT-WEIGHT: bold; FONT-SIZE: 10px; BACKGROUND-COLOR: #ffffff; border-color:#CCCCCC; border-style:solid; border-width:1px; height: 1.3 em; padding: 3.5; }


code for button located in center table:
Code:
<td><table border="0" width="100%" cellpadding="0" cellspacing="1"> <tr> <td class=NavDialogBox_ width="50%" valign=top> [img]{$ImagesDir}/spacer.gif[/img]<font class=SubHeader2>{$login}</font> [img]{$ImagesDir}/spacer.gif[/img]<font class=SubHeader2>{$lng.txt_email_preference}{$lng.txt_email_confirmations}</font> [img]{$ImagesDir}/spacer.gif[/img] <span>{$lng.lbl_modify_profile}</span> [img]{$ImagesDir}/spacer.gif[/img] <span> {$lng.lbl_delete_profile}</span> <table border="0" width="100%" cellpadding="0" cellspacing="1" align="center" class=NavDialogBox_> </table></td>

code for the buttons that are displaying correctly
Code:
<table border="0" cellpadding="0" cellspacing="0"> <tr height=25> <td onClick="javascript:self.location='register.php?mode=update'" class=new_button_gr style='cursor:pointer' align=center>{$lng.lbl_modify_profile}</td><td width=4></td> <td onClick="javascript:self.location='register.php?mode=delete'" class=new_button_gr style='cursor:pointer' align=center>{$lng.lbl_delete_profile}</td><td width=4></td> <td onClick="javascript:self.location='orders.php'" class=new_button_gr style='cursor:pointer' align=center>{$lng.lbl_orders_history}</td><td width=4></td> </tr>
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #4  
Old 11-07-2005, 08:50 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Well, the buttons at the bottom are made using Table Cells. Why don't you just replicate that code?

Also, the HTML that you are using for the links at that top is not entirely correct.

Modify profile

The more correct way to write this is

Modify profile

Its just a plain link.
Reply With Quote
  #5  
Old 11-07-2005, 09:18 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

I changed the code to read like you mentioned below, but teh button would not adjust at all.


I then tryed to replicate the code and insert it into the center table, my alignment would screw up. dont know what to do?

http://<a href="http://www.michaelmoskva.com/xcart/my_account.php" target="_blank">http://www.michaelmoskv...ccount.php</a>
__________________
x-cart 4.0.16v
linux server
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:32 PM.

   

 
X-Cart forums © 2001-2020