SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: Background image
-
Nov 26, 2002, 04:05 #1
- Join Date
- Aug 2002
- Location
- Burpengary, Australia
- Posts
- 4,495
- Mentioned
- 0 Post(s)
- Tagged
- 1 Thread(s)
Background image
Hey,
I think I have this right but I thought I'd check since it's not working properly. Knowing me, I could easily have made a simple error somewhere else which would screw this up but I'll still ask
PHP Code:td.header
{
text-align: center;
background-image: url(images/header.jpg);
}
Ta
-
Nov 26, 2002, 04:34 #2
- Join Date
- Aug 2002
- Location
- Burpengary, Australia
- Posts
- 4,495
- Mentioned
- 0 Post(s)
- Tagged
- 1 Thread(s)
OK, I can't get it to work. I have this in my style sheet -
PHP Code:td.header
{
height: 120px;
text-align: right;
v-align: bottom;
background-image: url(images/header.jpg);
}
PLEASE HELP, I'M GOING CRAZY
Edit: The text positioning is working with that (ie. bottom right).
-
Nov 26, 2002, 11:45 #3
- Join Date
- Apr 2002
- Location
- A Maze of Twisty Little Passages
- Posts
- 6,316
- Mentioned
- 60 Post(s)
- Tagged
- 0 Thread(s)
Basically v-align in CSS doesn't exist, try:
td.header {vertical-align: top;}
I presume you are trying to add a background image to a table division classed "header".
-
Nov 26, 2002, 20:19 #4
- Join Date
- Aug 2002
- Location
- Burpengary, Australia
- Posts
- 4,495
- Mentioned
- 0 Post(s)
- Tagged
- 1 Thread(s)
Yes, I realised that v-align doesn't exist, it was just a guess when I didn't have time to check
Thanks for the help but I figured the problem was Smarty trying to parse the CSS because it was in between delimiters. I'm just starting to learn Smarty so I didn't pick up on it until a friend told meProblem solved
Bookmarks