This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > April 2004 > Table border help please.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Table border help please.
chris

2004-04-21, 2:44 pm

Using Dreamweaver MX, suddenly if I select a table and choose a border
of 1 pixel I get a double line all around the table.
TIA,
Chris.

DiMa - TMM

2004-04-21, 2:45 pm

chris wrote:
> Using Dreamweaver MX, suddenly if I select a table and choose a border
> of 1 pixel I get a double line all around the table.
> TIA,
> Chris.


It's not sudden, it's cellspacing + html styling. That's just how table borders
are rendered when you do it that way. It's not a double line, it's just a line
which seems double because you have cellspacing.

If you want a single pixel outline of your table only, use CSS (which you
should have used in the first place...html styling is deprecated).

In the head of your page (or better yet in an attached style sheet with out
style tag and comments):

<style type="text/css">
<!--
..tblBorder /* or something more general */
border: 1px solid #000000; /* Choose your own color and style */
}

--
--
DiMa
Team Macromedia Member for Dreamweaver MX
--------------------
WEB FORUM USERS: Please log on to the Newsgroup for quicker replies to
your posts: news://forums.macromedia.com/macromedia.dreamweaver
For Answers, check here first:
http://groups.google.com/advanced_g...dia.dreamweaver
http://www.macromedia.com/support/d.../technotes.html
http://www.projectseven.com/faqbase
http://dwfaq.com

http://www.macromedia.com/support/forums/etiquette.htm

www.flyingtigerwebdesign dot com




David Stiller

2004-04-21, 2:46 pm

You'll have to add "class='tblBorder'" to your <table> tag, but I
support DiMa's take on it. :)

"dot" styles (like .tblBorder) are called classes (sometimes "custom
classes") and apply specifically to HTML tags that have a class attribute
set to that style's name, only without the dot, like <table
class="tblBorder">...</table>. Styles without the dot are called elements
and refer to their namesake HTML tag.

So if it suits your needs, you can make *all* tables have custom styling
by substituting "table" for DiMa's ".tblBorder" in the example she provided,
and then you wouldn't have to add the class attribute.

Like ...

table {
border: 1px solid #000000;
}


David
stiller ( at ) quip ( dot ) net

> In the head of your page (or better yet in an attached style sheet with

out
> style tag and comments):
>
> <style type="text/css">
> <!--
> .tblBorder /* or something more general */
> border: 1px solid #000000; /* Choose your own color and style */
> }



Nadia

2004-04-21, 2:48 pm

Chris,
See if this helps :
http://www.dreamweaverresources.com...tableborder.htm

--
Nadia
--------------------------------
: Dropdown Menu Design Available :
: Templates: Free Nav Bar Sets:
: Resources : Ecommerce : SEO Articles :
http://www.DreamweaverResources.com
!!Page Design Elements !!
-----------

"chris" <cgs@ntlworld.com> wrote in message
news:c5m6p3$j82$1@forums.macromedia.com...
> Using Dreamweaver MX, suddenly if I select a table and choose a border
> of 1 pixel I get a double line all around the table.
> TIA,
> Chris.
>



DiMa - TMM

2004-04-21, 2:53 pm

David Stiller wrote:
> You'll have to add "class='tblBorder'" to your <table> tag, but I
> support DiMa's take on it. :)


Thanks (again!) for finishing my post for me :) I'm not on top form lately, eh?
;)

--
--
DiMa
Team Macromedia Member for Dreamweaver MX
--------------------
WEB FORUM USERS: Please log on to the Newsgroup for quicker replies to
your posts: news://forums.macromedia.com/macromedia.dreamweaver
For Answers, check here first:
http://groups.google.com/advanced_g...dia.dreamweaver
http://www.macromedia.com/support/d.../technotes.html
http://www.projectseven.com/faqbase
http://dwfaq.com

http://www.macromedia.com/support/forums/etiquette.htm

www.flyingtigerwebdesign dot com




Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews