6022

Cannot add background image to my

Question:

I have a div with more buttons and I cannot add an image to it.

<strong>Html:</strong>

<div class="menu_border" style="height: 460px; width: 290px;"> </div>

<strong>CSS:</strong>

.menu_border { float: left; border: 5px groove; margin-left: 70px; text-align: center; background-image:url('images\generale\bkgmenu.jpg'); }

My css and source codes are in the main folder. There is the folder <em>images->generale</em> and the images. I've tested the path, is correct. I've tried to add the image as normal <img> and it worked.

It does not work as background.

Answer1:

ur code needs to change like this

background-image:url('images\generale\bkgmenu.jpg');

to

background-image:url('images/generale/bkgmenu.jpg');

image will taken this format

Recommend

  • How to speed up tkinter embedded matplot lib and python
  • How to detect WHICH folders OneDrive for Business are syncing
  • Python Tkinter: addressing Label widget created by for loop
  • Python Tkinter: addressing Label widget created by for loop
  • How do one only submit click event (div), when using jquery live function?
  • TCPDF's getNumLines() is sometimes wrong
  • Play Framework nested form errors missing
  • I don't get what's the difference between format() and … (python)
  • IOS > Open URL in Safari with POST
  • Caret disappears when the background of a textbox is gray in wpf
  • How to define an array of floats in Shader properties?
  • Scala: Function returning an unknown type
  • cell spacing in div table
  • Plotting densities in R
  • Update Google Maps traffic layer without page reloading
  • Floated image with variable width and heading with background image
  • Adjust width of select element according to selected option's width
  • How can I speed up CURL tasks?
  • how to display data from 1st point on words on y axis for line chart in d3.js
  • Installing iPhone App to iPhone
  • Listbox within Listbox and scrolling trouble in Windows Phone 7 Silverlight
  • Google Custom Search with transparent background
  • Disable Enter in editText android
  • Android fill_parent issue
  • Change multiple background-images with jQuery
  • Repeat a vertical line on every page in Report Builder / SSRS
  • Change JButton Shape while respecting Look And Feel
  • Opengl-es onTouchEvents problem or a draw problem? [closed]
  • Modifying destination and filename of gulp-svg-sprite
  • How to check if every primary key value is being referenced as foreign key in another table
  • How to apply VCL Styles to DLL-based forms in Inno Setup?
  • jquery mobile loadPage not working
  • python regex in pyparsing
  • CSS Applying specific rule for a specific monitor resolution with only CSS is posible?
  • JTable with a ScrollPane misbehaving
  • Change div Background jquery
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?