Click here to Skip to main content
15,887,083 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: using web API Pin
Southmountain17-Jan-22 9:00
Southmountain17-Jan-22 9:00 
GeneralRe: using web API Pin
RickZeeland17-Jan-22 9:56
mveRickZeeland17-Jan-22 9:56 
GeneralRe: using web API Pin
Slacker00718-Jan-22 0:18
professionalSlacker00718-Jan-22 0:18 
GeneralRe: using web API Pin
Southmountain25-Jan-22 6:06
Southmountain25-Jan-22 6:06 
GeneralRe: using web API Pin
deepok130-Mar-22 21:55
deepok130-Mar-22 21:55 
GeneralHow can i create social media sharing links for my website? Pin
Vijay Bishnoi15-Jan-22 19:45
Vijay Bishnoi15-Jan-22 19:45 
QuestionHow can i create social media sharing links for my website? Pin
Vijay Bishnoi15-Jan-22 19:45
Vijay Bishnoi15-Jan-22 19:45 
QuestionWhat is program is better to use than Dreamweaver for Website Design? Pin
David Mills 202112-Jan-22 21:44
David Mills 202112-Jan-22 21:44 
AnswerRe: What is program is better to use than Dreamweaver for Website Design? Pin
RobertSF25-Feb-22 12:46
professionalRobertSF25-Feb-22 12:46 
AnswerRe: What is program is better to use than Dreamweaver for Website Design? Pin
Member 150787164-Jul-22 18:53
Member 150787164-Jul-22 18:53 
QuestionMessage Removed Pin
31-Dec-21 3:16
Member 1548518431-Dec-21 3:16 
QuestionPHP quota on server Pin
JR21225-Dec-21 23:45
JR21225-Dec-21 23:45 
Questiongreating Pin
BEBEL AZOO20-Dec-21 20:03
BEBEL AZOO20-Dec-21 20:03 
AnswerRe: greating Pin
Connie Rucker21-Dec-21 3:00
Connie Rucker21-Dec-21 3:00 
QuestionWeb Server on Linux Pin
#realJSOP14-Nov-21 2:39
mve#realJSOP14-Nov-21 2:39 
AnswerRe: Web Server on Linux Pin
markkuk14-Nov-21 23:21
markkuk14-Nov-21 23:21 
GeneralRe: Web Server on Linux Pin
azraelmr129-Nov-21 1:45
professionalazraelmr129-Nov-21 1:45 
GeneralRe: Web Server on Linux Pin
markkuk29-Nov-21 10:16
markkuk29-Nov-21 10:16 
GeneralRe: Web Server on Linux Pin
azraelmr130-Nov-21 21:33
professionalazraelmr130-Nov-21 21:33 
AnswerRe: Web Server on Linux Pin
pkfox15-Nov-21 22:02
professionalpkfox15-Nov-21 22:02 
QuestionI need some assistance for do several customisation Pin
Member 154187496-Nov-21 7:04
Member 154187496-Nov-21 7:04 
AnswerRe: I need some assistance for do several customisation Pin
OriginalGriff6-Nov-21 7:05
mveOriginalGriff6-Nov-21 7:05 
QuestionASP.NET Core (5.0) Web App background images Pin
#realJSOP2-Nov-21 1:38
mve#realJSOP2-Nov-21 1:38 
I'm having a helluva time setting a background image. In the firefox dev console, I get this:

The image “https://localhost:44306/Images/banner_background2.jpg” cannot be displayed because it contains errors.

I'm using the bootstrap jumbotron and overriding that class to my site.css file, and it can't seem to find the image I'm specifying. Since it was in the css file, I couldn't use url.Content.

I also tried setting the style in the div, but that doesn't seem to be working either.

This is what I have right now (in Index.cshtml):

<div class="jumbotron" style="border-radius:0.75rem; background:no-repeat url('../Images/banner_background.jpg');">
    ... some content
</div>


Intellisense guided me to the image file, so I don't understand what I'm doing wrong. The div is about 250px tall. I've tried to use quotes around the filename, and no quotes, and I've also tried to use a tilde instead of ../.

Just for grins, I tried opening the image with firefox from windows explorer, and it opens fine.

EDIT===============================================

It turns out that for an ASP.Net Core web app, images have to be placed into a folder in the wwwroot directory. That's the only way I could get it to work... WTF?
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013


modified 2-Nov-21 10:00am.

QuestionUpload content onto Bootstrap card Pin
MekaC27-Oct-21 17:35
MekaC27-Oct-21 17:35 
SuggestionRe: Upload content onto Bootstrap card Pin
Richard Deeming27-Oct-21 21:49
mveRichard Deeming27-Oct-21 21:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.