Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   Web design and Programming (https://novahq.net/forum/forumdisplay.php?f=32)
-   -   bg image? (https://novahq.net/forum/showthread.php?t=39284)

GeeFuss 08-09-2007 01:08 PM

bg image?
 
i want a bg image in a cell of my table. but i dont want it to repeat. i want it vertically aligned at the top/center.

here is what i have:

Code:

<td colspan="11" align="left" valign="top" background="images/home_17.jpg" style="body {background-repeat: no-repeat;background-image: "images/home_17.jpg";}">
did i do the style part wrong?

EDGE 08-09-2007 01:12 PM

align="center - thats all I see wrong with it

GeeFuss 08-09-2007 03:19 PM

thats for the content in the cell. all text is left aligned. but the bg image is centered, well actually it doesnt even need to be centered. just needs to be at the top.

DevilDog#1 08-09-2007 06:45 PM

http://www.hitmill.com/html/tables/t...tml#background Google is a wonderful tool :D

GeeFuss 08-10-2007 02:18 AM

blah. google. i figured i would ask pros here haha.

thx mate. ill look at it in the morning.

IcIshoot 08-10-2007 08:20 AM

yep - but you may get answers quicker with google :D

took 5 hours and 45 min - could have had the answer with in 15 if you googled your self :D

lol every one keeps telling people here to use the search function of the forums - I'm going to start telling people to use google :D

hehehe most of the answers I give here to help out others I had to go google for ;)

GeeFuss 08-10-2007 11:17 AM

yeah. but i wont start working on the template again till tomorrow. so im in no rush.

but yeah ill start using google, but ill still post so you guys can use your knowledge somewhere :)

Capers 08-10-2007 11:57 AM

Re: bg image?
 
Quote:

Originally posted by Cardiac
i want a bg image in a cell of my table. but i dont want it to repeat. i want it vertically aligned at the top/center.

here is what i have:

Code:

<td colspan="11" align="left" valign="top" background="images/home_17.jpg" style="body {background-repeat: no-repeat;background-image: "images/home_17.jpg";}">
did i do the style part wrong?

Yup, you've used an inline style yet you've tried to set the css properties of the body tag.

Change it to:


Code:

<td colspan="11" align="left" valign="top"  style="background-repeat: no-repeat; background-image: 'images/home_17.jpg';">

GeeFuss 08-10-2007 08:18 PM

thanks for explaining :). very helpful


All times are GMT -5. The time now is 06:40 PM.

Powered by vBulletin®