You are here: Re: applying external style sheets « HTML « IT news, forums, messages
Re: applying external style sheets

Posted by Adrienne Boswell on 01/26/08 03:23

Gazing into my crystal ball I observed iamdave <sales@proaudiomusic.com>
writing in news:67dd4f47-c02c-482a-90a3-9022b3511c08
@k39g2000hsf.googlegroups.com:

>
> Rookie here, sorry.
>
> I use dreamweaver.
>
> My code is:
>
><meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
><link href="/header.css" rel="stylesheet" type="text/css">
><link href="/left.css" rel="stylesheet" type="text/css">
><link href="/right.css" rel="stylesheet" type="text/css">
><link href="/body.css" rel="stylesheet" type="text/css">
><link href="/footer.css" rel="stylesheet" type="text/css">
></head>
>
> So the external css sheets are linked within the page.
>
> But I don't understand how to get into the page and start putting
> things into the header, footer etc. In dreamweaver the help talks
> about seeing it in the window but in the css window I don't see the
> styles. I see the them in the folder. I'm lost and I know it's
> something silly, but I cant seem to figure it out. I'm moving from
> tables to css design so I'm sorry for the very rookie question.
>
> Dave

As others have said, you really need to step away from Dreamweaver and
learn the actual HTML.

One thing I would suggest is putting all your external stylesheets into
one sheet. Eg:
#header {height:100px;}
#left {border:1px solid red;}
#right {border:1px solid green;}
#body {font-family: arial, helvetica, sans-serif;}
#footer {margin-top:2em;}

Then in the markup:

<div id="header">
<img src="logo.png" height="100" width="300">
</div>
<div id="left">
Some text
</div>
<div id="right">
Some text
</div>
<div id="body>
<h1>Page</h1>
<p>Some content</p>
</div>
<div id="footer">
Some legalese
</div>

One of the reasons you would want to put everything in one stylesheet is
you might forget where something is. Was the thing you wanted to style
in the header, the footer? The exception to that might be keeping colors
separate, if the positioning is going to remain the same, eg. one
stylesheet for Christmas (red and green colors), another for Mardi Gras
(gold, purple and green colors), etc

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация