HighDots Forums  

need help making some table borders invisible

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss need help making some table borders invisible in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
imneedy
 
Posts: n/a

Default need help making some table borders invisible - 03-30-2009 , 05:47 PM






I need help in making some cell/table borders invisible.
Okay so there are four lines that define the border of a cell and I am trying
to make the left and right border invisible so that only the bottom and top
border will be visible. Is that possible? Thanks in advance.


Reply With Quote
  #2  
Old   
Michael Fesser
 
Posts: n/a

Default Re: need help making some table borders invisible - 03-30-2009 , 06:38 PM






..oO(imneedy)

Quote:
I need help in making some cell/table borders invisible.
Okay so there are four lines that define the border of a cell and I am trying
to make the left and right border invisible so that only the bottom and top
border will be visible. Is that possible? Thanks in advance.
Sure. Define your table borders with CSS. Assuming you've applied some
class 'foo' to your table, you can define the cell borders as follows:

..foo td {border: 1px #RGB; border-style: solid none}

Replace #RGB with a color value of your choice. The first declaration
defines the width and color of all four borders around each cell in that
table, but no style yet. This is done by the second declaration, which
sets top and bottom borders to 'solid', but left and right to 'none'.

Dependent on the intended result you also might have to add this:

..foo {border-collapse: collapse}

HTH
Micha


Reply With Quote
  #3  
Old   
evilracecarlive
 
Posts: n/a

Default Re: need help making some table borders invisible - 03-30-2009 , 07:13 PM



You can create a CSS class to do this.

.nosides{
border-right: none;
border-left: none;
}

Then apply that class to the cell you want to remove the borders on.

If you dont know CSS very well then you might want to take a look at the
http://www.w3schools.com/Css/default.asp.
They are very helpful!


Reply With Quote
  #4  
Old   
imneedy
 
Posts: n/a

Default Re: need help making some table borders invisible - 04-01-2009 , 05:27 PM



thanks for the helps guys. much appreciated.

Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.