absolute root url css [closed] - html

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I need to use this image from Images folder.
I use it in Content/style.css
url('background.jpg')
it shows me following error: http://localhost:50260/Content/Images/background.jpg 404 (Not Found)

This should work
background: url('../images/background.jpg');

Your question is a little hard to understand. If you want to reference a image using the root, then something like this will work:
background: url('/images/background.jpg');
The / at the start of the url says to reference the root.

Related

Not showing the image of img tag [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
I have a image tag on html code. which is used to generate a pdf. particular image for the image tag is taking from the server. but it is not showing the image. followings code is img tag what I have tried.
<img class="characteristics-image" src="https:://translate.orivet.com/images/last-page-2.png">
What is the wrong with this?
"https:://sales.com/images/img.png" is not a valid URL.
You meant "https://sales.com/images/img.png".

Not able to redirect to "https://www.google.com/india" using anchor tag [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
about india
That’s an error.
The requested URL /india was not found on this server. That’s all we know.
You are getting 404 error because the URL you are using doesn't exist. Try using any other URL.
HTTP 404 indicates that the resource you are looking for is not found.
Change the URL to
https://www.google.in
about india

Why am I failing to use a font-family I've downloaded? [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
The .html I’m editing is ‘thrway2.html’.
This is taking place in a style tag in my .html.
The problem was I was using smart quotes around “fonts/Ahem.ttf”.

CSS working in codepen not in jsfiddle [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I've got this pen, which I'm migrating to this fiddle
There is no external CSS library and d3.js is referenced in both of them.
Where am I missing?
You're missing the SCSS setting in your fiddle. Click the gear next to CSS, and choose SCSS from the drop down.

CSS attribute selector with url [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
Is it valid to use below css:
.myClass[my-url='page.html']
html
<ul class="myClass" my-url="page.html"></ul>
My doubt here is that can we directly use some html page name as a value.
my-url is an actual attribute on element with value of page.html
Yes, that technically works but instead of using my-url you should use data-my-url to make it pass HTML5 validation (if that matters to you at all).