Board index PBase HTML and Style Sheets Using an image as a background?

HTML and Style Sheets

Using an image as a background?

Customize your galleries.
srijith
Moderator
 
Posts: 2321
Location: Amsterdam

Re: Figured it out

Post Wed Oct 22, 2003 10:56 pm


digipets wrote:Looks great with the Opera Browser...gonna tell us how you did it?
Isabel

Code: Select all
background-image: url(http://www.pbase.com/image/21659058/original.jpg);
  background-color: black;

lizardbeth
 
Posts: 35


Post Fri Oct 24, 2003 7:49 pm


Darn it. I'm having problems too. What's wrong with this??

<!--
BODY {background : #B4C7D5;


font-size: 10pt;
background-attachment: fixed;
background-repeat: no-repeat;
BODY{background-image: url(http://www.pbase.com/image/22609782.jpg) ;

DIV,TH,TR,TD,TABLE,FONT,LI,UL,FORM,
BLOCKQUOTE,B,I,P,H1,H2,H3,H4,H5,FONT, CENTER
{
font-family: verdana, sans-serif;
font-weight: bold;
color: #ffffff; letter-spacing: 2px; font-size: 8pt;
}

srijith
Moderator
 
Posts: 2321
Location: Amsterdam


Post Fri Oct 24, 2003 10:57 pm


Try this:
Code: Select all
BODY {background : #B4C7D5;
font-size: 10pt;
background-attachment: fixed;
background-repeat: no-repeat;
background-image: url(http://www.pbase.com/image/22609782.jpg) ;
}

DIV,TH,TR,TD,TABLE,FONT,LI,UL,FORM,
BLOCKQUOTE,B,I,P,H1,H2,H3,H4,H5,FONT, CENTER
{
font-family: verdana, sans-serif;
font-weight: bold;
color: #ffffff; letter-spacing: 2px; font-size: 8pt;
}

That second "BODY{" before the url code is creating the problem as you did not close the previous "BODY{"'s tags with a "}" .

lizardbeth
 
Posts: 35


Post Sat Oct 25, 2003 1:26 pm


Oddly, it works when I'm previewing it (in edit mode) yet when I actually grab the stylesheet, the background image doesn't display. I'll keep fudging around with it. Maybe I should start all over. If you have any ideas, let me know.

Thanks!!!

srijith
Moderator
 
Posts: 2321
Location: Amsterdam


Post Sat Oct 25, 2003 3:32 pm


lizardbeth wrote:Oddly, it works when I'm previewing it (in edit mode) yet when I actually grab the stylesheet, the background image doesn't display. I'll keep fudging around with it. Maybe I should start all over. If you have any ideas, let me know.

Thanks!!!

Any sample galleries to show the problem?

lizardbeth
 
Posts: 35


Post Sat Oct 25, 2003 3:38 pm


I finally got it all to work. The css is rather sparse though, and I need the text to control the link colors. Could you fill me in on this one last thing and I promise not to bother you for awhile?? Thanks!!!

BODY {background : #B4C7D5;
font-size: 8pt;
margin-left: 1in;
background-attachment: fixed;
background-repeat: no-repeat;
background-image: url(http://www.pbase.com/image/22632730/original.jpg) ;
}

DIV,TH,TR,TD,TABLE,FONT,LI,UL,FORM,
BLOCKQUOTE,B,I,P,H1,H2,H3,H4,H5,FONT, CENTER
{
font-family: verdana, arial;
font-weight: bold;
color: #1C5570; letter-spacing: 1px; font-size: 8pt;


}

Previous

Board index PBase HTML and Style Sheets Using an image as a background?

Who is online

Users browsing this forum: No registered users and 2 guests