navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Table and cell height quesiton

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Design >> Web Graphics >> Table and cell height quesiton
Page: [1]
 
skarnes

 

Posts: 10
Joined: 3/23/2002
From: Orange CA
Status: offline

 
Table and cell height quesiton - 3/23/2002 12:29:49   
I'm working on a site where I want to use red lines to seperate sections of my page. The lines need to be about 5 or 10 pixels high and be both vertical and horizontal. For the horizontal lines I fist tried the <hr> tag in Frontpage which worked fine until I noticed that Netscape 6 didnt show the red color. Then I tried to use a table cell with a height of 5 pixels and I used a red background color but the cell disregarded my 5 pixels and seems to go no smaller that about 20 pixels no matter what i tried. I made a 5 and a 10 pixel high red image and used that as a background image in a cell and I'm getting tiling. I'm able to uses plain images but the problem is they expand with different resolutions so it makes precision difficult. I guess back to my original question, can table cells be made to work with heights as low as 5 or 10 pixels? Or is there a better way to present lines on a web site that are colored and both horizontal and vertical?

abbeyvet

 

Posts: 5095
From: Kilkenny Ireland
Status: offline

 
RE: Table and cell height quesiton - 3/23/2002 12:51:25   
You are so nearly there....!

Instead of a background image put a transparent gif into the cell. I use repeatedly a gif called h20 which is 3x20 pixels, but once it is in the cell I select it, right click and in picture properties change its size to whatever height or width I want the cell to be.

In the case of a vertical line be sure that you do not have cells in rows above or below that will prevent the cell shrinking to fit.

Some people use a 1x1 pixel gif but I find the slightly bigger one a bit easier to find and select.

You can have a copy of my faithful friend h20 - it is right at the tip of the arrow below, if you can find it, right click and save it.
--------------->

Katherine

++++++++++++++++++++++++
www.inkkdesign.com

Women and cats will do as they please. Men and dogs should relax and get used to the idea.

(in reply to skarnes)
skarnes

 

Posts: 10
Joined: 3/23/2002
From: Orange CA
Status: offline

 
RE: Table and cell height quesiton - 3/23/2002 14:48:55   
Hi Katherine, thanks for the quick replay but i'm still a tad confused. I imported the gif and changed height to 5 pixels used a cell background color of red and it looked good it frontpage preview but once saved and viewed via I.E.browser it was 20 pixels high again.Below is code I used.
<tr>
<td height="5" bgcolor="#FF0000">
<img border="0" src="h20transgif.gif" width="10" height="5">
</td>
</tr>
Am I suppose to import a red line image 5 pixels high into the cell?

I can do this but due to browser resize the cell bgcolor or even cell bgpicture would be better but i can't get either to work at the 5 pixel height.

Thaks for Your help.....






(in reply to skarnes)
abbeyvet

 

Posts: 5095
From: Kilkenny Ireland
Status: offline

 
RE: Table and cell height quesiton - 3/23/2002 16:59:33   
Sometimes that will happen because the closing </td> tag is on a different line to the image tag. Try changing

quote:
<td height="5" bgcolor="#FF0000">
<img border="0" src="h20transgif.gif" width="10" height="5">
</td>



to

quote:
<td height="5" bgcolor="#FF0000">
<img border="0" src="h20transgif.gif" width="10" height="5"></td>



Another reason may be that there is another cell in the row. If that is the case you need to put the transparent gif into all the cells or else merge them.



Katherine

++++++++++++++++++++++++
www.inkkdesign.com

Women and cats will do as they please. Men and dogs should relax and get used to the idea.

(in reply to skarnes)
PBailey

 

Posts: 907
From: San Antonio, Texas USA
Status: offline

 
RE: Table and cell height quesiton - 3/23/2002 17:05:59   
Katherine,

quote:
In the case of a vertical line be sure that you do not have cells in rows above or below that will prevent the cell shrinking to fit.



Sometimes I have problems getting the line row to shrink even with the gif until I delete the cells above and below and start over. What in those cells will keep the line cell from shrinking?

skarnes,

Just put the .gif in and the row should shrink to fit. I don't know why but it seems to work more consistantly if I put the gif in then do cell properties and set the color. Maybe Katherine can help on that.

Thanks,
Paula

 

(in reply to skarnes)
abbeyvet

 

Posts: 5095
From: Kilkenny Ireland
Status: offline

 
RE: Table and cell height quesiton - 3/23/2002 17:28:25   
Paula I think our posts may have overlapped anyway but I would be pretty sure the problem is the </td> tag being on the line below the image tag. They really must be on the same line or a larger space than the image size is maintained.

I tend to go in a put the opening <td>, the image tag and the closing </td> all on the same line to be sure.

Katherine

++++++++++++++++++++++++
www.inkkdesign.com

Women and cats will do as they please. Men and dogs should relax and get used to the idea.

Edited by - abbeyvet on 03/23/2002 17:29:32

(in reply to skarnes)
PBailey

 

Posts: 907
From: San Antonio, Texas USA
Status: offline

 
RE: Table and cell height quesiton - 3/23/2002 18:49:58   
Thanks Katherine. I think we did overlap. I'll do that from now on.

Paula

 

(in reply to skarnes)
skarnes

 

Posts: 10
Joined: 3/23/2002
From: Orange CA
Status: offline

 
RE: Table and cell height quesiton - 3/23/2002 19:14:05   
Thanks Katherine and Paula! The problem must of been the </td> tag. It's funny because when I first tried Katherine's original solution, Netscape showed the line correctly but I.E. didn't. Thats a first for me.

A favor in return, I came accross a free seminar series put on by Microsoft that may be of interest to some of you. See link below.

http://www.msbigday.com/



(in reply to skarnes)
Paula

 

Posts: 394
From: Morrow, Georgia, USA
Status: offline

 
RE: Table and cell height quesiton - 3/24/2002 3:49:45   
I love this forum. I've been trying to figure this problem out for a long time. I couldn't understand why sometimes my thin lines just wouldn't be thin. Thanks Katherine! Thanks skarnes for asking the question.

Paula
The more I learn the less I seem to know.

(in reply to skarnes)
Page:   [1]

All Forums >> Web Design >> Web Graphics >> Table and cell height quesiton
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts