It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

forcing cell heights

forcing cell heights

Postby vb-newbie on Wed Feb 22, 2006 7:51 pm

Hi all,

I'm new to html, and got a question for you all gurus out there. :)

I was just wondering how to force the height of a cell? I've created a table in frontpage and have a picture as a background to it. The table structure is used in multiple pages where I just change the contents of the table.

On some of the tables, the picture looks ok. On others, the picture is repeated vertically in the cell. When i look at the html details for that row, its height is set to 180, the same as those tables where the picture is displayed correctly.

Is there any way to stop the background picture from repeating or making it so they all look the same?

thanks for all the help! :)
vb-newbie
 
Posts: 2
Joined: Thu Oct 14, 2004 12:37 am

Postby C@L on Wed Feb 22, 2006 8:17 pm

in the cell tags just add the height tag :)

Code: Select all
<td height="image height">


Hope that helps :)
Image
User avatar
C@L
250+ Club
 
Posts: 445
Joined: Fri May 13, 2005 6:36 pm
Location: Lpool, England

Postby johneva on Wed Feb 22, 2006 8:18 pm

Firstly welcome to the DEVPPL fourm.

Right
I would advise on not using Front Page anyways cos it code up pages wrong.

As for how to stop a backgroung image repeating.

table
{
background: name.jpeg;
background: no-repeat;
}

But tables should not be used for layout anyways.

And the problem you explain comes when you are using a table that is larger than the image.
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby C@L on Wed Feb 22, 2006 10:46 pm

john if hes new to html i doubt he will know CSS :(
Image
User avatar
C@L
250+ Club
 
Posts: 445
Joined: Fri May 13, 2005 6:36 pm
Location: Lpool, England

Postby vb-newbie on Thu Feb 23, 2006 12:45 am

Hey guys,

Thanks for the replies. And yup, he's right... i'm not familiar with css. I did see it as a solution to the tiling problem in the help section of frontpage, though.

I'll give those things a try and get back again if i'm stuck, if that's ok... :)

Thank you!
vb-newbie
 
Posts: 2
Joined: Thu Oct 14, 2004 12:37 am

Postby johneva on Thu Feb 23, 2006 8:28 am

Aup

You dont need to know CSS, I have given the CSS all that you would have to do is wrap it with the style tags and stick in in the head of your page, or stick it in a CSS file but as said theres a good chance with you being new you would not be using a CSS file though.

Thanx John
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby C@L on Thu Feb 23, 2006 12:43 pm

to stop the images tiling i guess your guna have to use CSS

ok you should use the code john gave you just add it to the head tag

<style=text/css>
table
{
background: name.jpeg;
background: no-repeat place;
}
</style>

Where i have put place you can insert a possition where you would like the image to be ie. "bottom" "top" "left" "bottom right" "top left"
Image
User avatar
C@L
250+ Club
 
Posts: 445
Joined: Fri May 13, 2005 6:36 pm
Location: Lpool, England


Who is online

Users browsing this forum: No registered users and 11 guests