RichieBoy67
11-22-2019, 02:46 PM
I currently have banners running above subfurms. I am scaling images by using auto height and width="80%". The problem is that they stretch to wide on larger screens and look bad.
I would like to have the subforum ads display as width="80%" on forum home above the subforum but everywhere else display as width="728px". I figured I could accomplish this with conditionals but I am not sure.
So I need a conditional with an else statement that will display the % image on forum home and the "px" image everywhere else.
Is this possible?
BTW - I know I can do this with max-width but I think 2 images would be better. Thoughts?
--------------- Added 1574443249 at 1574443249 ---------------
#I figured out an easy way. I was way overthinking this.
width="100%" style="max-width:728px; height:auto; max-height:90px;
I would like to have the subforum ads display as width="80%" on forum home above the subforum but everywhere else display as width="728px". I figured I could accomplish this with conditionals but I am not sure.
So I need a conditional with an else statement that will display the % image on forum home and the "px" image everywhere else.
Is this possible?
BTW - I know I can do this with max-width but I think 2 images would be better. Thoughts?
--------------- Added 1574443249 at 1574443249 ---------------
#I figured out an easy way. I was way overthinking this.
width="100%" style="max-width:728px; height:auto; max-height:90px;