Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

the fine line surrounding the boxes


reffael

Recommended Posts

i know this is a html question but my knowledge in html is limited, so maybe some one can help.

i'm trying to create a new table class which is not inherits from the box class. i'm trying to surround the table with the same fine line like in the boxes on the right and left but i can't find out what is the trick they used to make it the way it is.

Link to comment
Share on other sites

Why must it not inherit from the box class, allthough you want it to have the same border? It isn't a real HTML question, the class you are talking about is PHP.

 

It is a bit unclear what you really want I think. Do you really want a new box class and if so why? Or do you want to create a box without such a class?

(all PHP class, not talking about CSS class this time, or did you mean CSS class?)

Link to comment
Share on other sites

ok, i'll try to be more clear about it.

i don't want to inherit from the box class because my creature is not realy a box, so i don't want to use inheritance in this case, but i still want to make it similar to the look of the boxes so i used the same css classes for the background colors, i didn't figure out, how they made the surrounding border line - it's not border="1" attribute, so what is it?

Link to comment
Share on other sites

how they made the surrounding border line - it's not border="1" attribute, so what is it?
The old border="1" gives thick borders if I remember well isn't it?

 

It's in the stylesheet, still not sure what your creation exactly is of course but in general you can create thin borders using CSS.

 

like (inline)

<table style="border: 1px solid red;">

 

or (HTML)

<table class="myNewTable">

combined with (stylesheet):

table.myNewTable {
border: 1px solid red;
}

 

replace "table" with "td" or any other block element if you like it better.

There are a lot of other CSS borders (and other ways to assign them) possible of course, this is just a simple example.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...