Jump to content

so I was using brackets for HTML coding and it was working fine but randomly my .css stopped working and now only my HTML works. so I'll launch my live preview and it will show the HTML version of the website without the CSS, however, if I text it in notepad++ it works fine and help?

Link to comment
https://linustechtips.com/topic/809357-brackets-not-working/
Share on other sites

Link to post
Share on other sites

The actual code would be helpful you know :)

Quote or tag if you want me to answer! PM me if you are in a real hurry!

Why do Java developers wear glasses? Because they can't C#!

 

My Machines:

The Gaming Rig:

Spoiler

-Processor: i5 6600k @4.6GHz

-Graphics: GTX1060 6GB G1 Gaming

-RAM: 2x8GB HyperX DDR4 2133MHz

-Motherboard: Asus Z170-A

-Cooler: Corsair H100i

-PSU: EVGA 650W 80+bronze

-AOC 1080p ultrawide

My good old laptop:

Spoiler

Lenovo T430

-Processor: i7 3520M

-4GB DDR3 1600MHz

-Graphics: intel iGPU :(

-Not even 1080p

 

Link to comment
https://linustechtips.com/topic/809357-brackets-not-working/#findComment-10162640
Share on other sites

Link to post
Share on other sites

Just now, dany_boy said:

The actual code would be helpful you know :)

[code]
<!DOCTYPE html>
<html lang="en">
    
    
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta charset="UTF-8">
        <title>Cookie's Game News</title>
        <link rel="stylesheet" type="text/css" href="C:\Users\cookie\Desktop\all web sights\ngame site\index.css">
        <link rel="stylesheet" href=" http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.css ">
    </head>
    <body>
     <nav>
       <i class="fa fa-bars" aria-hidden="true"></i>
      <ul>
       
       <li ><a class="home" href="index.html"     >     Home      </a>
       <li ><a class="tg" href="fav games.html" >       Top Games </a>
       <li ><a class="upcoming" href="upcoming.html"  > Upcoming  </a>
       <li ><a class="e3" href="e3.html"        >       E3        </a>
      </ul>
     </nav>

    <div id="ititle">
    <img src="C:\Users\cookie\Desktop\all web sights\site pics\MonsterHunterGenAstalos.jpg" alt="gaming image" id="ptitle">
      <h1 id="mtitle">Cookie's Game Updates</h2>
      <h3 id="smtitle">Gaming updates and news relating to my views</h3>
     </div>
     

     <div id="summary">
      <section>
       <h2>Purpose of site</h2>
        <article>
         <header>
          <h3>Purpose</h3>
          </header>
          <p>This is a sight made to both pratice html coding and to put my views and opinions of different game reviews, showings, gameplays, and all other game related content.</p>
        </article>
        <article>
         <header>
          <h3>Updates</h3>
          </header>
          <p>This sight is a test and thus should be seen as such. Updates on this sight will be next to none unless requested, and occasionally when a cool game releases.</p>
        </article>
      </section>
     </div>
     
     <div id="contact">
     <h2>Have a discussion</h2>
     <p>If you want to discuss any of the games i've listed contact me at any of the following: Steam: Dafi.Cookie; Text: ; Teamspeak: wu241.teamspeak3.com</P>
     </div>
     
     <footer>
      <p>Notice a bug, or somthing that looks funny? Email me a pic at <p>
     </footer>
    </body>
</html>
[/code]
[code]
@charset "UTF-8";

#ititle
{
    background-size: cover;
}
#ptitle
{
    max-width: 100%;
    height: auto;
    width: auto\9;  
   
}
#mtitle
{

    text-align: center;
    position: relative;
}
#smtitle
{
    
    text-align: center;
    position: relative;

}

nav
{
    
    background-color: #494f4b;
    padding: 1px;
    text-align:center;
}

nav a:active
{
    color: #FFFFFF;
    text-decoration: none;
}
nav a:visited, a:link
{
    color: #FFFFFF;
    padding: 16px 30px;
    text-decoration: none;
}
nav a:hover
{
    color: #FFFFFF;
    background-color: #000000;
  
}
li
{
    display: inline-block;
    font-size: 20px;
    text-align:center;
    margin-left: 2%;
    margin-right: 2%;
    font-variant: small-caps;
    font-weight: bold;
}


body
{
    margin-left: auto; 
    margin-right: auto;
}
footer
{    
    clear: both;
    background-color: #167216; 
    color: white; 
    padding: 1px 10px;
}
@media only screen and (max-width: 640px) { body { background-color: lightblue; }}
@media only screen and (max-width: 640px) { a {display: none;} nav {padding: 3px} }

[/code]
Link to comment
https://linustechtips.com/topic/809357-brackets-not-working/#findComment-10162650
Share on other sites

Link to post
Share on other sites

Can't see anything, RIP dark theme users. Please use auto formatting and use the code functionality next time. Gimme a sec while I make this readable for myself :(

Quote or tag if you want me to answer! PM me if you are in a real hurry!

Why do Java developers wear glasses? Because they can't C#!

 

My Machines:

The Gaming Rig:

Spoiler

-Processor: i5 6600k @4.6GHz

-Graphics: GTX1060 6GB G1 Gaming

-RAM: 2x8GB HyperX DDR4 2133MHz

-Motherboard: Asus Z170-A

-Cooler: Corsair H100i

-PSU: EVGA 650W 80+bronze

-AOC 1080p ultrawide

My good old laptop:

Spoiler

Lenovo T430

-Processor: i7 3520M

-4GB DDR3 1600MHz

-Graphics: intel iGPU :(

-Not even 1080p

 

Link to comment
https://linustechtips.com/topic/809357-brackets-not-working/#findComment-10162661
Share on other sites

Link to post
Share on other sites

39 minutes ago, Cookiecrumbles222 said:

<link rel="stylesheet" type="text/css" href="C:\Users\cookie\Desktop\all web sights\ngame site\index.css">

isn't this the problem if you're uploading the code to the website?

Current Build

Successful Builds

Spoiler
Spoiler

 

Link to comment
https://linustechtips.com/topic/809357-brackets-not-working/#findComment-10162778
Share on other sites

Link to post
Share on other sites

44 minutes ago, Cookiecrumbles222 said:

 <p>Notice a bug, or somthing that looks funny? Email me a pic at <p>

you should close with </p> :P

Current Build

Successful Builds

Spoiler
Spoiler

 

Link to comment
https://linustechtips.com/topic/809357-brackets-not-working/#findComment-10162791
Share on other sites

Link to post
Share on other sites

is this how it's supposed to look like? -game picture

0bAEAAS.png

Current Build

Successful Builds

Spoiler
Spoiler

 

Link to comment
https://linustechtips.com/topic/809357-brackets-not-working/#findComment-10162809
Share on other sites

Link to post
Share on other sites

Just now, Cookiecrumbles222 said:

yup thats it

so i basically changed this:

13 minutes ago, Gungpae said:

<link rel="stylesheet" type="text/css" href="C:\Users\cookie\Desktop\all web sights\ngame site\index.css">

to href="index.css" and placed that file in the same directory

it seems like it's having trouble finding that file.

Current Build

Successful Builds

Spoiler
Spoiler

 

Link to comment
https://linustechtips.com/topic/809357-brackets-not-working/#findComment-10162817
Share on other sites

Link to post
Share on other sites

Just now, Gungpae said:

so i basically changed this:

to href="index.css" and placed that file in the same directory

it seems like it's having trouble finding that file.

yea its a directory issue but I don't know why it's having it randomly

 

Link to comment
https://linustechtips.com/topic/809357-brackets-not-working/#findComment-10162827
Share on other sites

Link to post
Share on other sites

Just now, Cookiecrumbles222 said:

yea its a directory issue but I don't know why it's having it randomly

 

double check that the file is actually there, you might have moved the file on accident

Current Build

Successful Builds

Spoiler
Spoiler

 

Link to comment
https://linustechtips.com/topic/809357-brackets-not-working/#findComment-10162829
Share on other sites

Link to post
Share on other sites

2 minutes ago, Gungpae said:

double check that the file is actually there, you might have moved the file on accident

the error is with brakets not the file placement or coding, if i run it through notepad++ it works fine with the same file, its something with the settings of bracket but the thing is, is that i dent change anything in brakets

Link to comment
https://linustechtips.com/topic/809357-brackets-not-working/#findComment-10162845
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×