Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help with table...


Logik

Recommended Posts

Hi, I want to be able to space up my text from my table borders... (right_menu, lef_menu, main_content & cart & etc...)

http://parafinart.com/

 

The problem is cellspacin & cellpading only works in <table> & if i change that value my design will be a mess... so I tried making a <table></table> in my <td></td> put allign="center" & width="90%" but somehow it only works one time ... if I put that twice in my code all my main table is screwed up... if anyone knows a trick or why it dowsnt work plz awnser... or pm me... thx in advance

Link to comment
Share on other sites

Hi Logik,

 

you shouldn't hurry to much I think :) . I like the new looks you are creating, quite a heavy mod!

 

You could achieve this several ways, I certainly wouldn't go for a nested tables solution, it would mess up the nice and clean code you got now.

 

You could for example change this

<td width="196" height="327" valign="top" bgcolor="#a2bbda"><br>
           <a href="http://parafinart.com/account.php" class="menu">My Account</a><br>

to this

<td width="196" height="327" valign="top" bgcolor="#a2bbda" style="padding-left: 15px;"><br>
           <a href="http://parafinart.com/account.php" class="menu">My Account</a><br>

(adding style="padding-left: 15px;" to the table cell properties.)

 

This is an inline CSS style, nice for a quick change. But in the long run it would be better to assign a class and/or id to the cells, and assign the styles to the classes and id's in the stylesheet.

 

HTML:

<td class="aNiceClassName"><br>
           <a href="http://parafinart.com/account.php" class="menu">My Account</a><br>

 

and in the stylesheet add for example:

td.aNiceClassName {
width: 196;
height: 327;
valign: top;
background-color: #a2bbda;
padding-left: 15px;
}

Not sure if the valign will work this way, you can also leave it in the HTML code. You can choose yourself which properties you move to the stylesheet (I would move as much as possible though).

 

Hope this is what you were looking for.

Link to comment
Share on other sites

ok thx alot I need to work alot with the css ... I have like 3 css right now so I need to combine evrything...t hx alot .. I hope it works :)

 

IT WORKS ! you are my hero !

Link to comment
Share on other sites

IT WORKS ! you are my hero !

Wow I have always wanted to be one, going to print your message :D , thanks!

 

Btw I forgot to tell you, but I assume you know you have to check/change some hyperlink font colors?

Some are invisible always others become invisible when hovered (checked in IE/Opera/Mozilla all the same).

 

Paul

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...