HighDots Forums  

1 Pixel Black Border?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss 1 Pixel Black Border? in the Macromedia Dreamweaver forum.



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

Default 1 Pixel Black Border? - 08-06-2004 , 01:52 AM






Here's the site (only one page right now):

http://www.value1.com/forums/ultimatebb.cgi



Reply With Quote
  #2  
Old   
.: Nadia :.TMM :.
 
Posts: n/a

Default Re: 1 Pixel Black Border? - 08-06-2004 , 02:51 AM






Not exactly sure what your question is??
1 px black border around a table ?? Use a style - put the following in the
head of your document before the </head> tag


<style type="text/css">
<!--
..tableBlack{
border: 1px solid solid #000000;
}
-->
</style>

If this isn't what you mean, please rephrase your question ..


--
Nadia
Team Macromedia Volunteer for Dreamweaver
---------------
http://www.DreamweaverResources.com
Free Templates | Free Nav Bar Sets
Dropdown Menu Designs | CSS Layouts
Ecommerce - YVStore | SEO Articles
Table Tutorials | Background image Tutorials
------------------------------------------------
MM Dreamweaver Tutorials
http://macromedia.com/devnet/mx/dreamweaver/
-----------------




"swspain" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Here's the site (only one page right now):

http://www.value1.com/forums/ultimatebb.cgi





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

Default Re: 1 Pixel Black Border? - 08-06-2004 , 09:51 AM



That's what I mean, but how does one get it to actually work in Netscape in
Opera? In fact, never mind Opera. Netscape is fine.

I'm using this:

.tableBlack{
border: 1px solid #000000;
}

http://www.scottspain.com/comphelp/blackborder_bad.jpg.

Notice how only the top/left are truly solid.

Does that make sense?


Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: 1 Pixel Black Border? - 08-06-2004 , 09:54 AM



Where is the code?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"swspain" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
That's what I mean, but how does one get it to actually work in Netscape
in
Opera? In fact, never mind Opera. Netscape is fine.

I'm using this:

.tableBlack{
border: 1px solid #000000;
}

http://www.scottspain.com/comphelp/blackborder_bad.jpg.

Notice how only the top/left are truly solid.

Does that make sense?




Reply With Quote
  #5  
Old   
swspain
 
Posts: n/a

Default Re: 1 Pixel Black Border? - 08-06-2004 , 10:43 AM



Right now I'm doubling up:

<table border="1" cellpadding="0" cellspacing="0" bordercolor="#000000"
class="tableBlack">

and

.tableBlack{
border-top: 1px solid #000000;
border-right: 1px solid #000000;
border-bottom: 1px solid #000000;
border-left: 1px solid #000000;
}

Initially I just had this as the CSS:

border: 1px solid solid #000000;

But I thought I'd try mixing it up a bit...

Didn't help.


Reply With Quote
  #6  
Old   
swspain
 
Posts: n/a

Default Re: 1 Pixel Black Border? - 08-06-2004 , 10:45 AM



I also tried removing it from the table properties, and just leaving it in the CSS. That didn't help either.

Reply With Quote
  #7  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: 1 Pixel Black Border? - 08-06-2004 , 10:51 AM



Use -

<table cellpadding="0" cellspacing="0" class="tableBlack">

and -

border: 1px solid #000000;

(note there is only a single instance of 'solid')

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"swspain" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Right now I'm doubling up:

table border="1" cellpadding="0" cellspacing="0" bordercolor="#000000"
class="tableBlack"

and

.tableBlack{
border-top: 1px solid #000000;
border-right: 1px solid #000000;
border-bottom: 1px solid #000000;
border-left: 1px solid #000000;
}

Initially I just had this as the CSS:

border: 1px solid solid #000000;

But I thought I'd try mixing it up a bit...

Didn't help.




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

Default Re: 1 Pixel Black Border? - 08-06-2004 , 01:06 PM



.oO(swspain)

Quote:
That's what I mean, but how does one get it to actually work in Netscape in
Opera? In fact, never mind Opera. Netscape is fine.

I'm using this:

.tableBlack{
border: 1px solid #000000;
}

http://www.scottspain.com/comphelp/blackborder_bad.jpg.

Notice how only the top/left are truly solid.

Does that make sense?
Yep. When using CSS for styling borders you have to style _both_ the
table- and the td/th-elements. If you want to apply a black border to
them without using deprecated attributes you should use something like

HTML:

<table class="tableBlack">
....
</table>

CSS:

..tableBlack, .tableBlack td {
border: 1px solid #000;
border-collapse: collapse
}

Also notice that "tableBlack" is a bad name for a class, because it
contains presentational information. What if you want to change the
border color to something different than black one day? Try to find a
name that describes the meaning of the table, not its presentation.

HTH
Micha


Reply With Quote
  #9  
Old   
bill dubis
 
Posts: n/a

Default Re: 1 Pixel Black Border? - 08-06-2004 , 03:46 PM



Nest your table inside another table. Use bgcolor to set the color of the
outer table and then make the inner table slightly smaller in width and
height. You get a border that works in any browser.

"Michael Fesser" <netizen (AT) gmx (DOT) net> wrote

Quote:
.oO(swspain)

That's what I mean, but how does one get it to actually work in Netscape
in
Opera? In fact, never mind Opera. Netscape is fine.

I'm using this:

.tableBlack{
border: 1px solid #000000;
}

http://www.scottspain.com/comphelp/blackborder_bad.jpg.

Notice how only the top/left are truly solid.

Does that make sense?

Yep. When using CSS for styling borders you have to style _both_ the
table- and the td/th-elements. If you want to apply a black border to
them without using deprecated attributes you should use something like

HTML:

table class="tableBlack"
...
/table

CSS:

.tableBlack, .tableBlack td {
border: 1px solid #000;
border-collapse: collapse
}

Also notice that "tableBlack" is a bad name for a class, because it
contains presentational information. What if you want to change the
border color to something different than black one day? Try to find a
name that describes the meaning of the table, not its presentation.

HTH
Micha



Reply With Quote
  #10  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: 1 Pixel Black Border? - 08-06-2004 , 03:51 PM



No, you won't. The right way to do this 'hack' would be to make both tables
dimensionless, but make the outer one have 1px cellpadding. CSS is a better
approach, though.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"bill dubis" <bdubis (AT) brownjewelers (DOT) com> wrote

Quote:
Nest your table inside another table. Use bgcolor to set the color of the
outer table and then make the inner table slightly smaller in width and
height. You get a border that works in any browser.

"Michael Fesser" <netizen (AT) gmx (DOT) net> wrote in message
news:l5e7h01vgjur7tl10ott8ia4nf2jl5mrvj (AT) 4ax (DOT) com...
.oO(swspain)

That's what I mean, but how does one get it to actually work in
Netscape
in
Opera? In fact, never mind Opera. Netscape is fine.

I'm using this:

.tableBlack{
border: 1px solid #000000;
}

http://www.scottspain.com/comphelp/blackborder_bad.jpg.

Notice how only the top/left are truly solid.

Does that make sense?

Yep. When using CSS for styling borders you have to style _both_ the
table- and the td/th-elements. If you want to apply a black border to
them without using deprecated attributes you should use something like

HTML:

table class="tableBlack"
...
/table

CSS:

.tableBlack, .tableBlack td {
border: 1px solid #000;
border-collapse: collapse
}

Also notice that "tableBlack" is a bad name for a class, because it
contains presentational information. What if you want to change the
border color to something different than black one day? Try to find a
name that describes the meaning of the table, not its presentation.

HTH
Micha





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.