HighDots Forums  

Tables - Help!

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Tables - Help! in the Macromedia Dreamweaver forum.



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

Default Tables - Help! - 07-06-2004 , 09:33 AM






As a new user to Dreamweaver MX 2004, can someone tell me where I am going
wrong with my tables. When I design a table with say 1 row & 2 columns, the 1st
column I fix at 150px the 2nd column is 100% When I have content in the 2nd
column I expect it to shrink/expand depending on the size of the browser
window. It doesn't!

My table width is 100% border=0 cellspacing=0 cellpadding=0

Can anyone shed any light on this please.
Thanks


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

Default Re: Tables - Help! - 07-06-2004 , 09:51 AM






Kezele typed:
Quote:
As a new user to Dreamweaver MX 2004, can someone tell me where I am
going wrong with my tables. When I design a table with say 1 row & 2
columns, the 1st column I fix at 150px the 2nd column is 100% When I
have content in the 2nd column I expect it to shrink/expand depending
on the size of the browser window. It doesn't!

My table width is 100% border=0 cellspacing=0 cellpadding=0

Can anyone shed any light on this please.
Thanks

How did you specify the width of the 1st cell? If you want to hold it open
to that exact width, use a transparent shim inserted into the cell at that
width, or use css.

It should work as you describe, but it depends on how you are holding that
1st cell open I guess.
http://www.dreamweaverresources.com/tutorials/tablesizes.htm
A little something I put together to show how a table resizes - regardless
of table width, when you change the window viewport.
At the bottom of that page are references to other table tutorials that may
be of help as well.

--
Nadia
-----------------
*Free Templates *Dropdown Menu Templates*
http://www.DreamweaverResources.com
*Templates - HTML and CSS Validated *
*Free Nav Bar Sets*
*Resources : Ecommerce : SEO Articles*
-----------------
: Macromedia (MM) Technotes:
http://www.macromedia.com/support/search/
-----------------




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

Default Re: Tables - Help! - 07-06-2004 , 10:52 AM



Nadia, what is the css for the above table?

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

Default Re: Tables - Help! - 07-06-2004 , 10:53 AM



dreamweeper typed:
Quote:
Nadia, what is the css for the above table?
Sorry, you've lost me dreamweeper, which table ?


Nadia




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

Default Re: Tables - Help! - 07-06-2004 , 11:01 AM



dreamweeper typed:
Quote:
Nadia, what is the css for the above table?


Just before I close for the night
unless you mean the table on the link I posted.

/*class for table border tutorial*/


..bordertable{
border:1px solid #660000;
padding:2px 4px 2px 4px;
}

That is a pretty basic style though so it didn't conflict with anything else
on the page.
I would also add a width to the class if it were on a 'proper' page.

Hope this is what you were asking about

--
Nadia
-----------------
*Free Templates *Dropdown Menu Templates*
http://www.DreamweaverResources.com
*Templates - HTML and CSS Validated *
*Free Nav Bar Sets*
*Resources : Ecommerce : SEO Articles*
-----------------
: Macromedia (MM) Technotes:
http://www.macromedia.com/support/search/
-----------------




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

Default Re: Tables - Help! - 07-06-2004 , 01:34 PM



The table that Kezele asked about.

Table is 1 row, 2 columns. First col is 150 pixels wide, 2nd column is 100%.

How do you write the css for this?

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

Default Re: Tables - Help! - 07-06-2004 , 01:47 PM



dreamweeper wrote:

Quote:
The table that Kezele asked about.

Table is 1 row, 2 columns. First col is 150 pixels wide, 2nd column is 100%.

How do you write the css for this?
Something like this (I doubt you'll need a style for the right cell
since the table width is set to 100%, but I made a class anyway):

<style type="text/css">
<!--
..leftCell {
width: 150px;
}
..rightCell {
width: 100%;
}
..table {
width: 100%;
}
-->
</style>
</head>

<body>
<table cellpadding="0" cellspacing="0" class="table">
<tr>
<td class="leftCell">Blah blah blah</td>
<td>Blah blah blah</td>
</tr>
</table>

--
Dan Vendel - *GOF*
Contact: http://www.proformica.com/en/contact.shtml
Formmail tutorial: http://www.proformica.com/en/formmail_tutorial.shtml
Nested tables: http://www.proformica.com/en/nested_table_demo.shtml
SEO: http://www.proformica.com/en/search_engine_optimization.shtml
SE Utility: http://www.proformica.com/en/advanced_web_ranking.shtml
Search Dreamweaver newsgroup: http://www.proformica.com/google.html


Reply With Quote
  #8  
Old   
Kezele
 
Posts: n/a

Default Re: Tables - Help! - 07-07-2004 , 11:05 AM



Cheers Nadia. I'll take a look at the pages you suggest and probably stay out of layout mode for a while!!

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

Default Re: Tables - Help! - 07-07-2004 , 09:12 PM




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

Quote:
Cheers Nadia. I'll take a look at the pages you suggest and probably stay
out of layout mode for a while!!

You're welcome,
stay out of layout mode 'forever' not a while :-D

Good Luck and post back when you need more help at any time.

--
Nadia
---------------
:Free Templates !! Dropdown Menu Designs:
http://www.DreamweaverResources.com
:Templates: Free Nav Bar Sets:
:Tutorials : Ecommerce : SEO Articles :
-----------------




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.