Is there a way to link in a stylesheet where the extension is not css

0 votes

When I dynamically connect in the CSS (and JS, if you know—I haven't tested) the browser doesn't render the styles, what should I do?

Here is my code:

<link rel="stylesheet" href="css/test"/>

If I manually upload and save the file as test.css it then works.

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

Is there a way to say to the browser, "This is a CSS file? Please disregard that it doesn't have a CSS extension"?

MORE

The reason is that I'm setting up a server that enables users to dynamically design their own CSS. I don't want to create a tangible (digital) file every time a user updates the CSS or a new user opens their account because I'm saving this information in a database. Therefore, the URL might be something like href="http://somedomain.com/home.php?user=453&css=true" and, if entered into the browser's URL bar, would return the raw CSS.

Aug 8 in CSS by Edureka
• 11,040 points
165 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In CSS

0 votes
1 answer

Is there any way to colorize a white PNG image with CSS only?

Filters can be used with -webkit-filter and ...READ MORE

answered May 27 in CSS by Edureka
• 9,540 points
169 views
0 votes
1 answer

What is the proper way to display a logo with CSS?

An <img> element is the proper way ...READ MORE

answered Jun 10 in CSS by Edureka
• 9,540 points
38 views
0 votes
1 answer

Is there any way to animate an ellipsis with CSS animations?

You might try to time each ellipsis ...READ MORE

answered May 27 in CSS by Edureka
• 9,540 points
131 views
0 votes
1 answer
0 votes
1 answer

I want to create a small square colour filled box in HTML & CSS. And most important - I want to write one line after the box

Try using the square html entity: <div style="color:blue">&a ...READ MORE

answered Jun 28 in CSS by Edureka
• 9,540 points
247 views
0 votes
1 answer

when declaring css styles, what is the meaning of .classA.classB (two class names with a dot in the middle and no space)

The first example (space-separated classes) is a ...READ MORE

answered Jun 28 in CSS by Edureka
• 9,540 points
46 views
0 votes
0 answers

Styling the `<html>` element in CSS?

Can anyone explain to me why can ...READ MORE

Jul 25 in CSS by Edureka
• 11,040 points
25 views
0 votes
2 answers

Define a SQL query? What is the difference between SELECT and UPDATE Query? How do you use SQL in SAS?

HI.. SQL is Structured Query Language, which is ...READ MORE

answered Aug 8, 2020 in PHP by anonymous
4,980 views
0 votes
1 answer

Using/Handling colon inside a JSF generated HTML element ID in CSS selector

Yes, you can.  Just Backslash (\) the colon.  Like ...READ MORE

answered Nov 14, 2018 in Others by DataKing99
• 8,240 points
1,730 views
0 votes
1 answer

What is a css selector and where is it used?

CSS Selector is a combination of element ...READ MORE

answered Nov 21, 2018 in Data Analytics by Kalgi
• 52,350 points
294 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP