HighDots Forums  

Question about tables and CSS

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Question about tables and CSS in the Macromedia Dreamweaver forum.



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

Default Question about tables and CSS - 11-23-2004 , 04:37 PM






I have a table that I've formatted with CSS at:

http://www.serenityboise.com/Salon.htm

I'd like to have a series of sub tables in both the left and right table
cells. The problem I'm having is that if I set the table width to 100%,
then the new table extends over the original table borders which have
been set by CSS.

If this doesn't make sense, let me know, but does anyone have any
suggestions?

Thanks,
Steve

Reply With Quote
  #2  
Old   
twocan's
 
Posts: n/a

Default Re: Question about tables and CSS - 11-23-2004 , 04:40 PM






check out some of these free templates.
http://intensivstation.ch/css/template.php

regards

twocan's



"Steve Grosz" <boise_bound (AT) hotmail (DOT) com> wrote

Quote:
I have a table that I've formatted with CSS at:

http://www.serenityboise.com/Salon.htm

I'd like to have a series of sub tables in both the left and right table
cells. The problem I'm having is that if I set the table width to 100%,
then the new table extends over the original table borders which have been
set by CSS.

If this doesn't make sense, let me know, but does anyone have any
suggestions?

Thanks,
Steve



Reply With Quote
  #3  
Old   
Steve Grosz
 
Posts: n/a

Default Re: Question about tables and CSS - 11-23-2004 , 04:45 PM



Kinda weird, when its all in German....

twocan's wrote:
Quote:
check out some of these free templates.
http://intensivstation.ch/css/template.php

regards

twocan's



"Steve Grosz" <boise_bound (AT) hotmail (DOT) com> wrote in message
news:co0aih$jr2$1 (AT) forums (DOT) macromedia.com...

I have a table that I've formatted with CSS at:

http://www.serenityboise.com/Salon.htm

I'd like to have a series of sub tables in both the left and right table
cells. The problem I'm having is that if I set the table width to 100%,
then the new table extends over the original table borders which have been
set by CSS.

If this doesn't make sense, let me know, but does anyone have any
suggestions?

Thanks,
Steve




Reply With Quote
  #4  
Old   
Dan Vendel *GOF*
 
Posts: n/a

Default Re: Question about tables and CSS - 11-23-2004 , 05:04 PM



Steve Grosz wrote:

Quote:
I have a table that I've formatted with CSS at:

http://www.serenityboise.com/Salon.htm

I'd like to have a series of sub tables in both the left and right table
cells. The problem I'm having is that if I set the table width to 100%,
then the new table extends over the original table borders which have
been set by CSS.

If this doesn't make sense, let me know, but does anyone have any
suggestions?

Thanks,
Steve
No, I don't think the child table makes itself expand over the parent
table's borders. I think it's the long lines that don't break that are
causing this. Try something like this instead:


<head>
<style type="text/css">
<!--
..underlined {
border-bottom-width: 1px;
border-bottom-style: dashed;
border-bottom-color: #CCCCCC;
}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="79%" class="underlined">Facial from</td>
<td width="21%">$15 </td>
</tr>
<tr>
<td class="underlined">Arm</td>
<td>$20 / $30</td>
</tr>
<tr>
<td class="underlined">Arm</td>
<td>$25 / $40 / $50</td>
</tr>
<tr>
<td class="underlined">Arm</td>
<td>$25</td>
</tr>
</table>
</body>


--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml
Call or chat me via Skype ID: danvendel, but DON'T ask questions that
you can ask here! (get Skype at http://skype.com)


Reply With Quote
  #5  
Old   
Dan Vendel *GOF*
 
Posts: n/a

Default Re: Question about tables and CSS - 11-23-2004 , 05:06 PM



Steve Grosz wrote:

Quote:
Kinda weird, when its all in German....
Don't worry abut it. Those templates have nothing to do with your problem.

--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml
Call or chat me via Skype ID: danvendel, but DON'T ask questions that
you can ask here! (get Skype at http://skype.com)


Reply With Quote
  #6  
Old   
Steve Grosz
 
Posts: n/a

Default Re: Question about tables and CSS - 11-23-2004 , 06:27 PM



Would something like this work? If I have a CSS listed as #LSaleInfo
which already specifies how the left column is set up, what about a
#LSaleInfo td
{
border-bottom-width: 1px;
border-bottom-style: dashed;
border-bottom-color: #CCCCCC;
}

Would that do the same thing you're refering to?

Steve

Dan Vendel *GOF* wrote:
Quote:
Steve Grosz wrote:

I have a table that I've formatted with CSS at:

http://www.serenityboise.com/Salon.htm

I'd like to have a series of sub tables in both the left and right
table cells. The problem I'm having is that if I set the table width
to 100%, then the new table extends over the original table borders
which have been set by CSS.

If this doesn't make sense, let me know, but does anyone have any
suggestions?

Thanks,
Steve


No, I don't think the child table makes itself expand over the parent
table's borders. I think it's the long lines that don't break that are
causing this. Try something like this instead:


head
style type="text/css"
!--
.underlined {
border-bottom-width: 1px;
border-bottom-style: dashed;
border-bottom-color: #CCCCCC;
}
--
/style
/head
body
table width="100%" border="0" cellspacing="0" cellpadding="0"
tr
td width="79%" class="underlined">Facial from</td
td width="21%">$15 </td
/tr
tr
td class="underlined">Arm</td
td>$20 / $30</td
/tr
tr
td class="underlined">Arm</td
td>$25 / $40 / $50</td
/tr
tr
td class="underlined">Arm</td
td>$25</td
/tr
/table
/body



Reply With Quote
  #7  
Old   
Steve Grosz
 
Posts: n/a

Default Re: Question about tables and CSS - 11-23-2004 , 09:41 PM



I haven't uploaded it yet, but it still moves the right border into the
left column. The main tables left column is set at 50% (298) and right
column shows at 50% (278). Where does that difference of 20 come from?

The main table is only 80% wide, and is centered.

Steve

Dan Vendel *GOF* wrote:
Quote:
Steve Grosz wrote:

I have a table that I've formatted with CSS at:

http://www.serenityboise.com/Salon.htm

I'd like to have a series of sub tables in both the left and right
table cells. The problem I'm having is that if I set the table width
to 100%, then the new table extends over the original table borders
which have been set by CSS.

If this doesn't make sense, let me know, but does anyone have any
suggestions?

Thanks,
Steve


No, I don't think the child table makes itself expand over the parent
table's borders. I think it's the long lines that don't break that are
causing this. Try something like this instead:


head
style type="text/css"
!--
.underlined {
border-bottom-width: 1px;
border-bottom-style: dashed;
border-bottom-color: #CCCCCC;
}
--
/style
/head
body
table width="100%" border="0" cellspacing="0" cellpadding="0"
tr
td width="79%" class="underlined">Facial from</td
td width="21%">$15 </td
/tr
tr
td class="underlined">Arm</td
td>$20 / $30</td
/tr
tr
td class="underlined">Arm</td
td>$25 / $40 / $50</td
/tr
tr
td class="underlined">Arm</td
td>$25</td
/tr
/table
/body



Reply With Quote
  #8  
Old   
Dan Vendel *GOF*
 
Posts: n/a

Default Re: Question about tables and CSS - 11-24-2004 , 12:35 AM



Steve Grosz wrote:
Quote:
Would something like this work? If I have a CSS listed as #LSaleInfo
which already specifies how the left column is set up, what about a
#LSaleInfo td
{
border-bottom-width: 1px;
border-bottom-style: dashed;
border-bottom-color: #CCCCCC;
}

Would that do the same thing you're refering to?
No. I think it's the long lines with the dots that aren't breaking.
Hence, they are pushing the table, making it grow. Increase font size
and see.

So, instead of all those points, I split the cell into two. Why not
paste the code into a DW doc and look?

--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml
Call or chat me via Skype ID: danvendel, but DON'T ask questions that
you can ask here! (get Skype at http://skype.com)


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.