Doug03
07-20-2003, 02:40 PM
Hi All,
I have a problem and I am entirely new to CSS so I can't figure it out. What I want to do is get my home page positioned better on search engines with the help of CSS. My problem is that my home page is one large picture with a few links and no copy; thus the reason is won't work on a search engine. I heard about something called Z-order in CSS, and I'm not sure if it is that or absolute positioning. I want to put one full page on top of another. What I want to do is put some copy on the first page so that a search engine can read it, then my home page on top of that. I have it somewhat figured out, but not entirely. Here is the code so far:
<html>
<head>
<title>Z-order Example</title>
<style type="text/css">
<!--
div.one {position: absolute;
top: 20px;
left: 20px;
height: 50px;
width: 100%;
color: white;
background-color: blue;
z-index: 2;}
div.two {position: absolute;
top: 40px;
left: 0px;
height: 250px;
width: 100%;
background-color: yellow;
z-index: 3;}
-->
</style>
</head>
<body>
<div class="one">This is where I want my copy to go so search engines can read it..</div>
<div class="two">This yellow section is where I want my home page to go.</div>
</body>
</html>
What I want to do is have my home page take up the entire area of the yellow. Can anyone help? Thanks for your help!!!
Doug Atkins
I have a problem and I am entirely new to CSS so I can't figure it out. What I want to do is get my home page positioned better on search engines with the help of CSS. My problem is that my home page is one large picture with a few links and no copy; thus the reason is won't work on a search engine. I heard about something called Z-order in CSS, and I'm not sure if it is that or absolute positioning. I want to put one full page on top of another. What I want to do is put some copy on the first page so that a search engine can read it, then my home page on top of that. I have it somewhat figured out, but not entirely. Here is the code so far:
<html>
<head>
<title>Z-order Example</title>
<style type="text/css">
<!--
div.one {position: absolute;
top: 20px;
left: 20px;
height: 50px;
width: 100%;
color: white;
background-color: blue;
z-index: 2;}
div.two {position: absolute;
top: 40px;
left: 0px;
height: 250px;
width: 100%;
background-color: yellow;
z-index: 3;}
-->
</style>
</head>
<body>
<div class="one">This is where I want my copy to go so search engines can read it..</div>
<div class="two">This yellow section is where I want my home page to go.</div>
</body>
</html>
What I want to do is have my home page take up the entire area of the yellow. Can anyone help? Thanks for your help!!!
Doug Atkins