HighDots Forums  

Question about CSS

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Question about CSS in the Macromedia Dreamweaver forum.



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

Default Question about CSS - 11-05-2004 , 11:30 PM






I am new to the whole CSS realm, and am trying to follow along in a
DreamweaverMX book I have that explains how to use it. I have created a
external CSS file, called tbl.css, and in my header on the page I have
<link href="tbl.css" rel="stylesheet" type="text/css" />

The CSS file is suppost to put a red line down the left border of any
table, and is defined as:

td{
border-left-color: #FF0000;
}

The problem is that when I test this out, there is no border.

What have I done wrong?

Steve

Reply With Quote
  #2  
Old   
Bryan Ashcraft
 
Posts: n/a

Default Re: Question about CSS - 11-06-2004 , 12:03 AM






Steve Grosz wrote:
Quote:
I am new to the whole CSS realm, and am trying to follow along in a
DreamweaverMX book I have that explains how to use it. I have created a
external CSS file, called tbl.css, and in my header on the page I have
link href="tbl.css" rel="stylesheet" type="text/css" /

The CSS file is suppost to put a red line down the left border of any
table, and is defined as:

td{
border-left-color: #FF0000;
}

The problem is that when I test this out, there is no border.

What have I done wrong?

Steve
If you want the border on your table, not just on the cells within the
table you should assign it to table not td.

--
Bryan Ashcraft (remove brain to reply)
Paragon Visuals :: http://www.paragonvisuals.com
TMM Volunteer (DW) :: http://www.macromedia.com/go/team
--


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

Default Re: Question about CSS - 11-06-2004 , 02:03 AM



Steve Grosz wrote:

Quote:
td{
border-left-color: #FF0000;
}
You need to define a width also.

table{
border-left: 1px solid #FF0000;
}


--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver MX
http://www.webade.co.uk
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------


Reply With Quote
  #4  
Old   
John Waller
 
Posts: n/a

Default Re: Question about CSS - 11-06-2004 , 02:05 AM



Quote:
td{
border-left-color: #FF0000;
}
That's part of the syntax required.
You'll need to add a border-style and thickness to see anything happen.

To apply to a table cell only:

td {
border-left-color: #FF0000;
border-left-style: solid;
border-left-width: 2px;
}

or, better, using shorthand:

td { border-left: #FF0000 solid 2px; }

To apply to a table, change "td" to "table".

--
Regards

John Waller




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.