HTML & WEB-Design

Moderators: Jonathan
Number of threads: 1249
Number of posts: 3348

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Stumped Posted by Ice06 on 11 Jun 2006 at 11:07 PM
I am really new to web designing and I want to design a site where I need the contents and the background seperated (like two different pages). A friend of mine said to use div id tags but he didn't get into how I do much else.

Any help would be nice or links to where I can learn this. I have searched many sites but dunno really what to look for.

Thx in advance.
Report
Re: Stumped Posted by zibadian on 12 Jun 2006 at 12:58 AM
: I am really new to web designing and I want to design a site where I need the contents and the background seperated (like two different pages). A friend of mine said to use div id tags but he didn't get into how I do much else.
:
: Any help would be nice or links to where I can learn this. I have searched many sites but dunno really what to look for.
:
: Thx in advance.
:
The best site for this is www.w3schools.com.
Report
Re: Stumped Posted by Ice06 on 12 Jun 2006 at 6:11 AM
ty. I'll check that asap.
Report
Re: Stumped Posted by mac_doggie on 14 Jun 2006 at 1:51 PM
: I am really new to web designing and I want to design a site where I need the contents and the background seperated (like two different pages). A friend of mine said to use div id tags but he didn't get into how I do much else.
:
: Any help would be nice or links to where I can learn this. I have searched many sites but dunno really what to look for.
:
: Thx in advance.
:
You can use z-indexes and absolute positioning...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
<html lang="nl">
   <head>
      <style>
         #page1 {
            position: absolute;
            left:0px;
            top:0px;
            z-index:1;
         }
         
         #page2 {
            position: absolute;
            left:0px;
            top:0px;
            z-index:2;
         }
      </style>
   </head>
   <body>
      <div id="page1">
      This is on page 1
      </div>
      <div id="page2">
      This is on page 2
      </div>
   </body>
</html>


as you can see, the two texts are placed over eachother...

If you can read dutch you should really check out this page: http://www.handleidinghtml.nl/

good luck...

-mac-
mailto:mac_doggie@hotmail.com
the Netherlands...


Report
Re: Stumped Posted by Ice06 on 14 Jun 2006 at 11:08 PM
: : I am really new to web designing and I want to design a site where I need the contents and the background seperated (like two different pages). A friend of mine said to use div id tags but he didn't get into how I do much else.
: :
: : Any help would be nice or links to where I can learn this. I have searched many sites but dunno really what to look for.
: :
: : Thx in advance.
: :
: You can use z-indexes and absolute positioning...
:
:
: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
: <html lang="nl">
:    <head>
:       <style>
:          #page1 {
:             position: absolute;
:             left:0px;
:             top:0px;
:             z-index:1;
:          }
:          
:          #page2 {
:             position: absolute;
:             left:0px;
:             top:0px;
:             z-index:2;
:          }
:       </style>
:    </head>
:    <body>
:       <div id="page1">
:       This is on page 1
:       </div>
:       <div id="page2">
:       This is on page 2
:       </div>
:    </body>
: </html>
: 

:
: as you can see, the two texts are placed over eachother...
:
: If you can read dutch you should really check out this page: http://www.handleidinghtml.nl/
:
: good luck...
:
: -mac-
: mailto:mac_doggie@hotmail.com
: the Netherlands...
:
:
:
Awsome! How would I setup for style 2 from another page? That will be it then.

Report
Re: Stumped Posted by mac_doggie on 14 Jun 2006 at 11:46 PM
: : : I am really new to web designing and I want to design a site where I need the contents and the background seperated (like two different pages). A friend of mine said to use div id tags but he didn't get into how I do much else.
: : :
: : : Any help would be nice or links to where I can learn this. I have searched many sites but dunno really what to look for.
: : :
: : : Thx in advance.
: : :
: : You can use z-indexes and absolute positioning...
: :
: :
: : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
: : <html lang="nl">
: :    <head>
: :       <style>
: :          #page1 {
: :             position: absolute;
: :             left:0px;
: :             top:0px;
: :             z-index:1;
: :          }
: :          
: :          #page2 {
: :             position: absolute;
: :             left:0px;
: :             top:0px;
: :             z-index:2;
: :          }
: :       </style>
: :    </head>
: :    <body>
: :       <div id="page1">
: :       This is on page 1
: :       </div>
: :       <div id="page2">
: :       This is on page 2
: :       </div>
: :    </body>
: : </html>
: : 

: :
: : as you can see, the two texts are placed over eachother...
: :
: : If you can read dutch you should really check out this page: http://www.handleidinghtml.nl/
: :
: : good luck...
: :
: : -mac-
: : mailto:mac_doggie@hotmail.com
: : the Netherlands...
: :
: :
: :
: Awsome! How would I setup for style 2 from another page? That will be it then.
:
:

You mean this:

create two files... index.html and stylesheet.css

index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
<html lang="nl">
   <head>
      <title>website - page</title>
      <link rel="stylesheet" type="text/css" href="stylesheet.css" />
   </head>
   <body>
     <p>Lorem ipsum dolor sit amet consectetuer Morbi id In turpis Morbi. Curabitur Morbi enim interdum Vestibulum ut adipiscing Lorem Quisque quis Aliquam. Neque molestie Phasellus justo a pede rhoncus fringilla Lorem pede dolor. Enim Morbi eu ornare consequat laoreet est In pede orci dui. Elit velit Curabitur scelerisque at vel quis accumsan Nunc neque dis. Urna cursus sed Maecenas ut semper ac tincidunt eget.</p>
   </body>
</html>



stylesheet.css
body {
   background-image : url('myimage.jpg');
}


-mac-
mailto:mac_doggie@hotmail.com
the Netherlands...


Report
Re: Stumped Posted by Ice06 on 14 Jun 2006 at 11:52 PM
Just awsome again... thx for all the help. i'll see what I can do with this and let you take a look when i'm finished.
Report
Re: Stumped Posted by mac_doggie on 15 Jun 2006 at 8:43 AM
: Just awsome again... thx for all the help. i'll see what I can do with this and let you take a look when i'm finished.
:
Ok... good luck

-mac-
mailto:mac_doggie@hotmail.com
the Netherlands...





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.