Welcome to the IMTalk - Internet Marketing & SEO Forum.
  • Login:
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    arronmattwills is offline IM & SEO Mumbler arronmattwills is on a distinguished road
    Join Date
    Jan 2014
    Location
    India
    Posts
    365
    Thanks Given
    9
    Thanked 12 Times in 11 Posts

    Path is the important thing while including your css file into html...

    <link rel=''stylesheet" href="css/mystyle.css" media="screen">
    And the important thing is we should not give wrong path for css file. Here i have created a css folder then i have saved my 'mystyle.css' file then i am pointing that file into this html. If your style sheet will be in your main file only then no need to give any path. But your path should be correct. If not it html doesn't works.

  2. #2
    kristinewilliams's Avatar
    kristinewilliams is offline IM & SEO Whisperer kristinewilliams is on a distinguished road
    Join Date
    Sep 2011
    Location
    Tustin, CA
    Posts
    86
    Thanks Given
    0
    Thanked 11 Times in 10 Posts
    You are right my friend but if my CSS sheet is in the same folder in which I have placed my HTML file then the whole path is not necessary one can just use filename.css and it included in your page without any path specification but the above method specified by you always better to use.

  3. #3
    singhabhishek251 is offline IM & SEO Weak Jaw singhabhishek251 is on a distinguished road
    Join Date
    Feb 2013
    Posts
    118
    Thanks Given
    4
    Thanked 7 Times in 7 Posts
    Quote Originally Posted by kristinewilliams View Post
    You are right my friend but if my CSS sheet is in the same folder in which I have placed my HTML file then the whole path is not necessary one can just use filename.css and it included in your page without any path specification but the above method specified by you always better to use.
    Of-course what you are telling the same version of what above has been told, if you think clearly, then this is also path. When css is in the same folder and you are writing only filename.css, then that alone reflects the path of the css.
    website design company in Hyderabad |best urologist in Hyderabad website design hyderabad, best urologist Hyderabad, urologist, website

  4. The Following User Says Thank You to singhabhishek251 For This Useful Post:


  5. #4
    bloggersjoy Guest
    Best choice is to place the CSS file in the same directory as your html file and simply write the name of file followed by CSS extension so you will not need to write the path and styles will load in the desired way.

  6. #5
    wink0r's Avatar
    wink0r is offline Moderator wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold
    Join Date
    Oct 2010
    Location
    East Coast, USA
    Posts
    2,183
    Thanks Given
    941
    Thanked 651 Times in 491 Posts
    . . .write the name of file followed by CSS extension so you will not need to write the path and styles will load in the desired way.
    You will still need the meta link to the external style sheet including its location in the head section of your page. To the best of my knowledge a browser will not load an external stylesheet if it is not linked in the head section of the page.

  7. #6
    arronmattwills is offline IM & SEO Mumbler arronmattwills is on a distinguished road
    Join Date
    Jan 2014
    Location
    India
    Posts
    365
    Thanks Given
    9
    Thanked 12 Times in 11 Posts
    Quote Originally Posted by bloggersjoy View Post
    Best choice is to place the CSS file in the same directory as your html file and simply write the name of file followed by CSS extension so you will not need to write the path and styles will load in the desired way.
    Dear friend. Your thought is really nice.
    but if we work for a big website like core php based then we should keep css files in a public folder which needs correct path.

    here my concern is about large size website.


 

Similar Threads

  1. PSD to HTML/CSS service (w3c valid)
    By Katsar0v in forum Services
    Replies: 4
    Last Post: 10-22-2012, 11:42 PM
  2. How to include a css file in html in net beans application?
    By vedantpatil in forum Programming, Scripting, Database, Testing, Debugging...
    Replies: 1
    Last Post: 10-16-2012, 07:25 AM
  3. The role of HTML and CSS in the Web design
    By Delois in forum Website Planning, Design & Development
    Replies: 1
    Last Post: 02-20-2012, 08:55 PM
  4. Hamiltonian Path Link Building Method
    By franberries in forum Link Building General Talk
    Replies: 0
    Last Post: 02-03-2012, 03:03 AM
  5. How to Tips for Web Page Backgrounds - both HTML and CSS
    By whitegyr in forum Website Planning, Design & Development
    Replies: 3
    Last Post: 11-02-2010, 01:20 PM

Posting Permissions

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