YAFLogo

SaiDon
  • SaiDon
  • 71% (Friendly)
  • YAF Lover Topic Starter
8 years ago
Dear all,

I would my banner resize automatic when changing resolution of screen

Please help me

Thanks

SaiDon

Sponsor

Zero2Cool
8 years ago
Change the Width parameter (or add it if not present already) to a percentage instead of a static value.

width="75%"

SaiDon
  • SaiDon
  • 71% (Friendly)
  • YAF Lover Topic Starter
8 years ago
Originally Posted by: Zero2Cool 

Change the Width parameter (or add it if not present already) to a percentage instead of a static value.

width="75%"

Here is code in source:

Banner

Please help me modify for banner resize automatic

Zero2Cool
8 years ago
Originally Posted by: SaiDon 

Originally Posted by: Zero2Cool 

Change the Width parameter (or add it if not present already) to a percentage instead of a static value.

width="75%"

Here is code in source:

Banner

Please help me modify for banner resize automatic

Here, but I think it might be better to do this via the CSS instead.

<img src="~/images/banner/Banner_001.png" runat="server" width="75%" alt="Banner" style="border: 0;" id="imgBanner"/> 
SaiDon
  • SaiDon
  • 71% (Friendly)
  • YAF Lover Topic Starter
8 years ago
Forum is error when adding width="75%" :

Banner

any idea?

squirrel
8 years ago
Try:
<img src="~/images/banner/Banner_001.png" runat="server" alt="Banner" style="border: 0; width: 75% !important;" id="imgBanner"/>
Maybe it will work...


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
SaiDon
  • SaiDon
  • 71% (Friendly)
  • YAF Lover Topic Starter
8 years ago
Originally Posted by: squirrel 

Try:

<img src="~/images/banner/Banner_001.png" runat="server" alt="Banner" style="border: 0; width: 75% !important;" id="imgBanner"/>
Maybe it will work...

It is ok! Thanks