Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Mar 2011
    Posts
    26
    Thanks
    1
    Thanked 0 Times in 0 Posts

    css file and html file

    Hi all,

    When I have two files one for css and the other for html, I put the link for css file on the html file but, when I add something on the css file. It doesn't change anything on the html file.

    Could someone help why?

  • #2
    Banned
    Join Date
    Feb 2011
    Posts
    2,699
    Thanks
    13
    Thanked 395 Times in 395 Posts
    Post the code you use to link the css file to the html file.

  • #3
    New to the CF scene
    Join Date
    Mar 2011
    Location
    Virginia
    Posts
    5
    Thanks
    0
    Thanked 1 Time in 1 Post
    you have to add css file as below in your html file

    <link rel="stylesheet" type="text/css" href="css/default.css" />

    give a exact path in href attribute.

  • #4
    New Coder
    Join Date
    Mar 2011
    Posts
    26
    Thanks
    1
    Thanked 0 Times in 0 Posts
    This is what I have put.

    <link href="forms.css" rel="stylesheet" type="text/css" />

    But, like I said before, It doesn't change anything in my html file.

    Thank you,

  • #5
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Please show us ALL your code. Doctype, HTML and CSS.

    Better still give us a link to your site.

    But why would it change your HTML? anyway?

    Frank
    Last edited by effpeetee; 04-03-2011 at 02:58 PM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •