Jump to content

To to resize it.


manalnor

Recommended Posts

Hello dear sir,

 

I can write

 

<img src="pictures/<?=$line[channellogo]?>" height="84" width="84">

 

where <?=$line[channellogo]?> is the name of an image

 

i would like now to rewrite it as css

 

background-image: url(pictures/<?=$line[channellogo]?>);
background-repeat:no-repeat;

 

how then i can set for it  height and width as in the 1st code  :shrug:

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/208879-to-to-resize-it/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.