View Full Version : Yikes!


Lovin' Alexei
05-11-2003, 07:42 PM
I used CSS for one section of the page, and it worked just great! So, I copied and pasted the code into the next section because I wanted to be the same, but it won't work.


<html>
<head>

<style type="text/css">
<!--
A:link { text-decoration: none; color:"#ffffff" }
A:visited { text-decoration: none; color:"#ffffff" }
A:hover { text-decoration: none; color:"#9966ff" }

<title>Please don't wake me if I'm dreaming...</title>

BODY {background-image: http://www.geocities.com/iciceangel/IceDreams/Layout.gif; background-repeat: no-repeat;background-position: 50% 50%}
-->
</style>

</head>



I'm trying to get the image centered in, but it's not working. Have I typed up the code wrong or something?

Greeno
05-11-2003, 07:53 PM
Have you tryed other things? Like 49,51.. 52,48.. etc.

Lovin' Alexei
05-11-2003, 08:06 PM
It's not the centering I'm having trouble with. Nothing is coming up. It's just a white screen.

lefty
05-11-2003, 08:06 PM
Your code is slightly out of order; the title stuff shouldn't be in between the css codes. plus, you left out a bit in your background code :)

<html>
<head>
<title>Please don't wake me if I'm dreaming...</title>

<style type="text/css">
<!--
A:link { text-decoration: none; color:"#ffffff" }
A:visited { text-decoration: none; color:"#ffffff" }
A:hover { text-decoration: none; color:"#9966ff" }
BODY {background-image:url(http://www.geocities.com/iciceangel/IceDreams/Layout.gif); background-repeat: no-repeat;background-position: 50% 50%}
-->
</style>

</head>

zangerbanger
05-11-2003, 08:50 PM
Just a note of advice: Instead of copying and pasting your entire css code, why don't you link your stylesheets? To do this you save your css code in a notepad document and save it as .css. Then you upload it and put this code wherever you want your css stylesheet to appear:

<link rel="stylesheet" href="filename.css">

Lovin' Alexei
05-11-2003, 09:16 PM
Thanks! I might try that. This is my first real layout I've worked on, so I'm not the best at it just yet.

I have one more question, if any of you could please help me. I've used CSS, but how can I out an inline frame in? I tried using the normal code, but it didn't work.

By the way, THANK YOU SO MUCH! That code worked! I must've made a really stupid error