Jump to content


Help Please


5 replies to this topic

#1 mattchewone

    Young Padawan

  • Members
  • Pip
  • 3 posts

Posted 26 April 2009 - 12:56 PM

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

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 26 April 2009 - 01: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?

#3 mattchewone

    Young Padawan

  • Members
  • Pip
  • 3 posts

Posted 26 April 2009 - 01:05 PM

View Postrc69, on Apr 26 2009, 07:02 PM, said:

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.

#4 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 26 April 2009 - 01:47 PM

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.

#5 mattchewone

    Young Padawan

  • Members
  • Pip
  • 3 posts

Posted 26 April 2009 - 02:04 PM

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.

#6 Jurnky

    Young Padawan

  • Members
  • Pip
  • 84 posts

Posted 01 May 2009 - 10:08 AM

Can you show us the HTML/CSS files please?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users