What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » CSS Doc

Pages: (2): « First [ 1 ] 2 » Last »
CSS Doc
Author: Message:
welshboy222
Full Member
***

Avatar

Posts: 325
Reputation: 4
29 / Male / –
Joined: Apr 2006
Status: Away
O.P. CSS Doc
How do I put a CSS document into my HTML for my website as I have tried lots but it wont work.
If the worst comes to the worst eat a cake makes you feel better!
05-20-2006 03:02 PM
Profile E-Mail PM Find Quote Report
stoshrocket
Senior Member
****

Avatar
formerly methos

Posts: 748
Reputation: 31
33 / Male / Flag
Joined: Aug 2005
RE: CSS Doc
what do you mean? link to an external css sheet??

code:
<link rel="stylesheet" type="text/css" href="link to css" title="default" />


eg/. if the css sheet is style.css and is in the same directory as you have the .html file in, use the code

code:
<link rel="stylesheet" type="text/css" href="style.css" title="default" />


This post was edited on 05-20-2006 at 03:04 PM by stoshrocket.
formerly methos
05-20-2006 03:04 PM
Profile PM Web Find Quote Report
Zahid™
Senior Member
****

Avatar

Posts: 954
Reputation: 18
– / Male / Flag
Joined: Nov 2005
RE: CSS Doc
CSS Tutorial: http://www.w3schools.com/css/
If you have already made a css document just put this in the <head> section :
code:
<link rel="stylesheet" type="text/css" href="put link of css here" title="default" />

This post was edited on 05-20-2006 at 03:12 PM by Zahid™.
[Image: Zahid.png]
05-20-2006 03:06 PM
Profile PM Web Find Quote Report
welshboy222
Full Member
***

Avatar

Posts: 325
Reputation: 4
29 / Male / –
Joined: Apr 2006
Status: Away
O.P. RE: CSS Doc
didnt work
If the worst comes to the worst eat a cake makes you feel better!
05-20-2006 03:15 PM
Profile E-Mail PM Find Quote Report
Zahid™
Senior Member
****

Avatar

Posts: 954
Reputation: 18
– / Male / Flag
Joined: Nov 2005
RE: CSS Doc
quote:
Originally posted by welshboy222
didnt work
It should work, have you already created a css file? and did you put it in the <head> ?
[Image: Zahid.png]
05-20-2006 03:17 PM
Profile PM Web Find Quote Report
welshboy222
Full Member
***

Avatar

Posts: 325
Reputation: 4
29 / Male / –
Joined: Apr 2006
Status: Away
O.P. RE: CSS Doc
this is it and its just words no positioning or picture
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="/* CSS Document */
body {background-image:url(images/bg.jpg); background-repeat:repeat-y; background-color:#FFFF99; padding-left: 90px;}
#page {width: 410px; float:left}
#page h1{color:#FF9933; font-family:"Trebuchet MS", Verdana, SansSerif; margin:20px 0 0 0; text-align:center;}
#page p {font-family:Arial, Helvetica, sans-serif; padding-left:10px;}
#page .postdatetime {text-align:center; color:#FF0000; font-family:Arial, Helvetica, sans-serif; font-size:10px}
#page .postcat {text-align:center; color:#FF9933; font-family:Arial, Helvetica, sans-serif; font-size:10px;}

#sidebar {padding-left:410px;}
#sidebar ul {padding:4px; margin: 0 0 0 4px; width:100%}
#sidebar li {width:100%;margin:0; padding:0; list-style-type:none; color:#FFFFFF; font-family:"Trebuchet MS", Verdana, SansSerif; font-size:12px;}
#sidebar li a{color:#FFFFFF; text-decoration:none; width:100%}
#sidebar li a:hover{color:#FFFF99;}
#sidebar h3 {font-size:22px; margin: 0; color:#FFFFFF; font-family:"Trebuchet MS", Verdana, SansSerif; padding-left:2px}
#sidebar .sideitem1 {background-color:#FF0000; width: 170px;  margin-top: 10px;}
#sidebar .sideitem2 {background-color:#FF9933; width: 170px;  margin-top: 10px;}
#sidebar .sideitem3 {background-color:#FF6633; width: 170px;  margin-top: 10px;}
#footer {clear:both; text-align:right; font-family:"Trebuchet MS", Verdana, SansSerif; color:#FF0000; font-weight:bolder}
#footer a{color:#FF0000; text-decoration:none}
#footer a:hover{color:#FF9933; text-decoration:none}
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="style.css" type="text/css"/>" title="default" />
</head>

<body>

<div id="page">

    <h1>Welcome to SimpliCss4</h1>
    <div class="postdatetime">July 13, 2006</div>
    <p>This design is inspired by my favorite coffee mug :) </p>
     <div class="postcat">Posted in: Category 1, Category 2</div>
        <h1>Welcome to SimpliCss4</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

    <h1>Welcome to SimpliCss4</h1>
    <div class="postdatetime">July 13, 2006</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
     <div class="postcat">Posted in: Category 1, Category 2</div>
   
    <h1>Welcome to SimpliCss4</h1>
    <div class="postdatetime">July 13, 2006</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
     <div class="postcat">Posted in: Category 1, Category 2</div>
   
        <h1>Welcome to SimpliCss4</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
   

    <h1>Welcome to SimpliCss4</h1>
    <div class="postdatetime">July 13, 2006</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
     <div class="postcat">Posted in: Category 1, Category 2</div>
   
        <h1>Welcome to SimpliCss4</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
   
        <h1>Welcome to SimpliCss4</h1>
    <div class="postdatetime">July 13, 2006</div>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
     <div class="postcat">Posted in: Category 1, Category 2</div>
   
        <h1>Welcome to SimpliCss4</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</div>

<div id="sidebar">
   
    <div class="sideitem1">
    <h3>Menu</h3>
    <ul>
        <li><a href="index.html" title="link">Link</a></li>
        <li><a href="index.html" title="link">Link</a></li>
        <li><a href="index.html" title="link">Link</a></li>
        <li><a href="index.html" title="link">Link</a></li>
    </ul>
    </div>
   
    <div class="sideitem2">
    <h3>Categories</h3>
    <ul>
        <li><a href="index.html" title="link">Link</a></li>
        <li><a href="index.html" title="link">Link</a></li>
        <li><a href="index.html" title="link">Link</a></li>
        <li><a href="index.html" title="link">Link</a></li>
    </ul>
    </div>
   
    <div class="sideitem3">
    <h3>Archive</h3>
    <ul>
        <li><a href="index.html" title="link">Link</a></li>
        <li><a href="index.html" title="link">Link</a></li>
        <li><a href="index.html" title="link">Link</a></li>
        <li><a href="index.html" title="link">Link</a></li>
    </ul>
    </div>
   
    <div class="sideitem1">
    <h3>Valid</h3>
    <ul>
        <li><a href="index.html" title="link">XHTML</a></li>
        <li><a href="index.html" title="link">CSS</a></li>
    </ul>
    </div>   
</div>
<div id="footer">Designed by: <a href="http://myhedspace.com" title="Myhedspace.com" target="_blank">Jose Erlino M. Lontok</a></div>
</body>

</html>
If the worst comes to the worst eat a cake makes you feel better!
05-20-2006 03:21 PM
Profile E-Mail PM Find Quote Report
stoshrocket
Senior Member
****

Avatar
formerly methos

Posts: 748
Reputation: 31
33 / Male / Flag
Joined: Aug 2005
RE: CSS Doc
hmm.... you want internal css from what i can see....

ive attached the html doc, ive used the <style> tag for the internal css... but you can use external style sheets (nicer looking coding :P) by moving that css into a new doc, naming it style.css and then linking to it the way i said in my post earlier ;)

.html File Attachment: mmmm.html (7.42 KB)
This file has been downloaded 131 time(s).
formerly methos
05-20-2006 03:25 PM
Profile PM Web Find Quote Report
welshboy222
Full Member
***

Avatar

Posts: 325
Reputation: 4
29 / Male / –
Joined: Apr 2006
Status: Away
O.P. RE: CSS Doc
how do I get that file off there?
If the worst comes to the worst eat a cake makes you feel better!
05-20-2006 03:27 PM
Profile E-Mail PM Find Quote Report
stoshrocket
Senior Member
****

Avatar
formerly methos

Posts: 748
Reputation: 31
33 / Male / Flag
Joined: Aug 2005
RE: CSS Doc
click on mmm.html, select the text, ctrl + c, open up notepad, ctrl + v et voila! just save that as a .html doc ;)
formerly methos
05-20-2006 03:30 PM
Profile PM Web Find Quote Report
welshboy222
Full Member
***

Avatar

Posts: 325
Reputation: 4
29 / Male / –
Joined: Apr 2006
Status: Away
O.P. RE: CSS Doc
so can I put all this HTML/css onto my website?
If the worst comes to the worst eat a cake makes you feel better!
05-20-2006 03:35 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On