Help - Search - Members - Calendar
Full Version: Help Please
Pixel2Life Forum > Help Section > HTML, XHTML, CSS and General Web Design
mattchewone
Hi, i seem to be having great difficulty getting an external css to work with NVU. I am new to all of this and am only going on what i have read. This is what i done -

- named the file style.css (written in textedit, MAC OS X)
- Linked via this = <link rel="stylesheet" type="text/css" href="style.css"> in the head

I have also gone into NVU and selected CSS Editor under tools and selected the file and done it that way.

But it just does not want to work. Here is the css file incase there is something wrong in it (its from a tutorial of here)

- *
{
margin: 0;
padding: 0;
}

#body
{
background-color: #EEEEEE;
color: #00314A;
font-family: Tahoma, Arial, Verdana;
font-size: 11px;
}

#container
{
width: 700px;
background-color: #F5F5F5;
color: #00314A;
margin: 0 auto;
border: 2px solid #ffffff;
border-top: 0;
padding: 0 5px;
}

#heading
{
font-size: 23px;
font-weight: bold;
}

#main
{
width: 100%;
margin-top: 5px;
}
#left
{
display: inline;
float: left;
width: 340px;
}

#right
{
display: inline;
float: right;
width: 340px;
}

#clear
{
clear: both;
}

#copyright
{
width: 300px;
margin: 5px auto;
font-size: 9px;
border-top: 1px dashed #8D8D8D;
text-align: center;
}

#title
{
font-weight: bold;
margin-top: 5px;
}
#description
{
width: 100%;
border-top: 1px dashed #8D8D8D;
}

#right img
{
border: 2px solid #8D8D8D;
}
#right img:hover{
border: 2px solid #FFFFFF;
}

Many Thanks

Matt
rc69
What's NVU? You seem to have a grip on how to link the CSS file to the HTML, so i won't ask if that's correct. However, is the CSS file in the same directory as the HTML file?
mattchewone
QUOTE (rc69 @ Apr 26 2009, 07:02 PM) *
What's NVU? You seem to have a grip on how to link the CSS file to the HTML, so i won't ask if that's correct. However, is the CSS file in the same directory as the HTML file?


Im just going on what i have read. Yes all files are saved in the same folder. NVU is an open source HTML writer with in built css editor (which i havent used i decided to write one in textedit.)

Its really bugging me and i cant work out why they dont work together.
rc69
Well, i know nothing about NVU, so i can't help you with that, but if you load the HTML file in your browser, and the CSS does appear to be linking correctly, then i have no further advice i can really offer you.
mattchewone
The CSS does not do anything when i load the html file into the browser. That is the issue. The html file and CSS file dont seem to want to be working together.
Jurnky
Can you show us the HTML/CSS files please?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.