+ 1

Why isnt my css file doing anything i want to make link colour blue and adjust image positions..

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatibe" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name ="description" content=""> <title>Portfolio </title> <!-- The style.css file allows you to change the look of your web pages. If you include the next line in all your web pages, they will all share the same look. This makes it easier to make new pages for your site. --> <link href="/style.css" rel="stylesheet" type="text/css" media="all"> </head> <body> <h2> <img class="logo" src="https://paul-henry-portfolio.neocities.org/image_2023-08-11_131417565.png" alt="logo" > <nav> <ul class="nav__links"> <li><a href="https://paul-henry-portfolio.neocities.org/not_found">Services</a></li> <li><a href="https://paul-henry-portfolio.neocities.org/not_found">Projects</a></li> <li><a href="https://paul-henry-portfolio.neocities.org/not_found">About</a></li> </ul> </nav> <a class="cta" href="https://paul-henry-portfolio.neocities.org/not_found"><button>Contact</button></a> </h2> <p1>Here's how you can make <strong>bold</strong> text.</p1> <p2>Here's how you can add an image:</p2> <img src="/thepepe.jpg" height="90px" width="90px"> <p3>Here's a list of future projects:</p3> <ol> <li> A simple calculator </li> <li>A simple game </li> <li>A youtube video converter </li> <li>A full stack app</li> </ol> <p4>To learn more HTML/CSS, check out these <a href="https://neocities.org/tutorials">tutorials</a>!</p4> </body> </html> And CSS file: https://paul-henry-portfolio.neocities.org/style.css

11th Aug 2023, 11:26 AM
Paul-Henry Paltmann
Paul-Henry Paltmann - avatar
4 Respostas
+ 4
- Use exact path to CSS file It works for me: <link href="https://paul-henry-portfolio.neocities.org/style.css" rel="stylesheet" type="text/css" media="all"> - also for image source use complete path to image file so it will work fine - for other style change you can edit your style information from css file
11th Aug 2023, 12:01 PM
Shree
Shree - avatar
+ 4
I have done required modification I your code. It works smoothly. -Check Line no 25 and 53 in code attached below: https://code.sololearn.com/WpSVoCfAUo73/?ref=app
11th Aug 2023, 12:09 PM
Shree
Shree - avatar
11th Aug 2023, 2:52 PM
Shree
Shree - avatar
0
idk it still doesnt work on neocities
11th Aug 2023, 2:40 PM
Paul-Henry Paltmann
Paul-Henry Paltmann - avatar