Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 22 Nov 2019, 16:46
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
Forum Only conditional

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 22 Nov 2019 at 17:20 ---------------

#I figured out an easy way. I was way overthinking this.

width="100%" style="max-width:728px; height:auto; max-height:90px;
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:23.

Layout Options | Width: Wide Color: