How to add background image in page

how to add background image in page

Setting the background in an MVC _Layout.cshtml page

Feb 17,  · Hi, As already pointed out, it depends where you want it to be. You can put a background image via CSS virtually anywhere even on the "Form" and "Body" tag. The CSS looks something like this: body {background-image:url(');} More information on the subject you can find here. Hope this helps. If you want to set image as background for whole page, use this: body { background-image: url('Image URL'); }.

Sign in Email. Forgot your password? Ask a Question. How to add a background image in asp. Please Sign up or sign in to vote. See more: VB. Posted Feb am udmanju Add a Solution. Top Rated Most Recent. Accept Solution Reject Solution. Posted Feb am Mehul M Thakkar. Posted 3-Jan pm Dabhi Vishal. Follow these simple steps: 1. Right click on the solution and select Add Existing Item. Browse for an image and what channel is food network it.

Now right click on any space on the page and select properties. Go to Background and click the ellipses symbol [ Browse for the image you added recently and give The image will be set as page background! Posted What does a personal pronoun mean pm ajramya. Narmatha Dec am. Gaurav Jadhav Mar am. Posted Jun am Harmanjeet Singh. Member 1-Jan am. Add your solution here.

OK Paste as. Treat my content as plain text, not as HTML. Existing Members Sign in to your account. This email is in use. Do you need your password? Submit your solution! When answering a question please: Read the question carefully. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.

If a question is poorly phrased then either ask for hod, ignore it, or edit the question and fix the problem. Insults are not welcome. Don't tell someone to read the manual.

Chances are they have and don't ad it. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid. Related Questions. Net Master Page. Unable to add table background image. How to Add How to add background image in page Background images.

How to add textbox inside the image background? How to add background image in tooltips using overlib.

Layout: fixed fluid. Web04 hoow. Strip HTML. Encode HTML. Paste as-is. Code block. Quoted Text. Best guess. Optional Password. Shao Voon Wong. Richard MacCutchan. Richard Deeming. Dave Kreskowiak.

Solution 4

If it is located in the same folder where the 'image' folder is located, then this looks correct. However, if you css file is in a different directory (say /css) then your link in your css file will not work. Instead, either change the css link to point to a complete link: background-image: url(' Apr 14,  · Copy the onclick event code from the existing button and put it into the markup for the new ImageButton, so it looks like this: onclick=”btnGo_Click”/>. Now, add an image for the button to your Images folder just like we added the logo to the Images folder. Mar 20,  · Examples to Implement Image. Let us create an Image control in a sample application step by step. Step 1. Create a new WebApplication project. This will create a shell template with a working application with a page. Step 2. Insert an image in the application by browsing in your local machine.

Join Stack Overflow to learn, share knowledge, and build your career. Connect and share knowledge within a single location that is structured and easy to search.

I'm new in asp. And I am having trouble setting my background image. Here's the master page source:. This largely depends on where your css file is located. If it is located in the same folder where the 'image' folder is located, then this looks correct. Instead, either change the css link to point to a complete link:.

Since your css is in the scripts folder, you should be able to do this:. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Setting background image in asp. Asked 8 years, 4 months ago. Active 3 years, 11 months ago. Viewed 86k times. I don't know whats wrong. And here's what the style. Improve this question. Where is your style sheet located in the directory structure? But as 'tjcertified' suggested, I tried to put my style.

Add a comment. Active Oldest Votes. Since your css is in the scripts folder, you should be able to do this: background-image: url '.. Improve this answer. I already solve my problem, thanks for your great answer. Sorry, edits should make this more clear. I didn't look carefully at your master page first. If the css is working as is, leave it in the 'scripts' folder, and use the second link, and all should be well.

Dany Gauthier Dany Gauthier 6 6 silver badges 16 16 bronze badges. Ravindra Bagale Ravindra Bagale Thanks for that info, but it still fails even I did that.

Add master page, then link css script and paste the link of CSS using drag and drop method. Tanmay Raman Tanmay Raman 1. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast How to build and maintain online communities, from gaming to…. Level Up: Creative Coding with p5. Featured on Meta. Stack Overflow for Teams is now free for up to 50 users, forever.

Outdated Answers: results from use-case survey. Downvotes Survey results. Linked 0. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled. Accept all cookies Customize settings.

2 Replies to “How to add background image in page”

Add a comment

Your email will not be published. Required fields are marked*