Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1211 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

problem linkings css to html page

Thread title: problem linkings css to html page
Reply    
    Thread tools Search this thread Display Modes  
11-06-2011, 08:04 PM
#1
BUrgy is offline BUrgy
Status: I love this place
Join date: Feb 2007
Location: under your bed
Expertise:
Software:
 
Posts: 589
iTrader: 2 / 100%
 

BUrgy is on a distinguished road

Send a message via AIM to BUrgy Send a message via MSN to BUrgy

  Old  problem linkings css to html page

Hi, I'm currently attempting to follow a tutorial on coding a very simple site and am having some problems linking my style.css page to my html page.

I have inserted the code <link href="mysite/style.css" rel="stylesheet" type="text/css" media="screen" /> in the <head> tag right bellow the title tag.

The "website" it's uploaded to is www.mountaineerevents.com/mysite if you need to take a further look at the code.

If anyone can please take a look at this and hopefully point out what I am doing wrong that would be greatly appreciated. Thank you.

I have also tried viewing the website offline with the href="style.css" and still does not appear to make a difference.

Note: I am also very aware that I only have a few lines of css but I believe it should be at least centered to the page from what I have there, and do not want to move further through the tutorial until I get this right.

Thank you again in advance.

11-27-2011, 07:42 AM
#2
GregBenner is offline GregBenner
Status: I'm new around here
Join date: Nov 2011
Location:
Expertise:
Software:
 
Posts: 2
iTrader: 0 / 0%
 

GregBenner is on a distinguished road

  Old  linking css

Hi try taking out the "/mysite" and "style.css"
basically with relative links you need to think where your html sits.
In this case in the mysite folder. If you added a new folder in my site called "css" you would link the css "css/style.css"

If you are ever in doubt what you can do to guarantee linking it an absolute link. for example <link href= "www.mountaineerevents.com/mysite/style.css" type="text/css" media="screen" />

google relative links vs absolute links to find more tricks and tips.

Reply    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed