Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8911023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:50:18+00:00 2026-06-15T03:50:18+00:00

For some reason my CSS is only working when inline. I’m somewhat new to

  • 0

For some reason my CSS is only working when inline. I’m somewhat new to web design and not really sure about how to track down why this is occurring. It’s not like I can open the console to check for errors, so what kinds of things should I look for? I’m sorry I’m not being more specific, I’m just really not even sure what to do.

Say the url is “www.example.com/testing/3”

The page testing.php would load, call API.php and determine what to do when on page testing.php with vale 3. API.php would then call a function on testing.php to deal with whatever that function tells it to do. So basically it calls out, determines which function to handle the URL, then calls back in.

When I include the CSS in the head of testing.php it works. When I just have a link, it doesn’t. All of the files are in the same folder and I’m developing on localhost, no files are admin-restricted: I’m the admin anyway so permission isn’t an issue.

//test.css
P.special {
    color:green;
    border:solid red;
    margin-top:85px;
}

Head of testing.php

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

A function on testing.php

 function view_event($event_id){
    ?>
    <p class ="special">
    //stuff here
    </p>
    <?
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T03:50:19+00:00Added an answer on June 15, 2026 at 3:50 am
    <link a href="test.css" rel="stylesheet" type="text/css"/>
    

    would need to be changed to:

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

    Using relative URLs will not work when you traverse into other directories. Setting it to an absolute URL with / will allow it to work anywhere on site.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason the background does not appear. This is the CSS div.sidebar_beige {
I'm working on a Web Application in Visual Studio 2010. For some reason the
For some reason, z-index is working for one particular element in IE8, but not
This is kind of embarrassing but I cannot for some reason get his CSS
I use CSS transitions fairly regularly and for some reason I cannot get them
I have a CSS file being defined in my program and for some reason
I'm using selenium with IE 7,8,9 and for some reason, some CSS 3 locators
Due to network or some other reasons, some sites do not have their css
I have a simple website(primarily static html/css) but for some reason some of the
Firefox is for some reason not properly handling content sent through my .NET HTTP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.