www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Referencing an image in .css file in vibe.d

reply GreatSam4sure <greatsam4sure gmail.com> writes:
I am trying to reference an image that is in public/imgs/pix1.jpg 
in CSS file using background-image using URL but the image does 
not show.

What is the proper way of reference to the URL of the image?

I will appreciate any help
Mar 11 2020
parent GreatSam4sure <greatsam4sure gmail.com> writes:
On Wednesday, 11 March 2020 at 22:11:24 UTC, GreatSam4sure wrote:
 I am trying to reference an image that is in 
 public/imgs/pix1.jpg in CSS file using background-image using 
 URL but the image does not show.

 What is the proper way of reference to the URL of the image?

 I will appreciate any help
Solve The image did not show because I did not give it a height
Mar 11 2020