Responsive Banner

For support and discussion related to templates, themes, and imagesets in phpBB 3.1.
Scam Warning
sandraken
Registered User
Posts: 21
Joined: Thu Mar 24, 2016 3:52 pm

Responsive Banner

Post by sandraken »

I have a banner image 1080 in width, but on smart devices only message board shrink to smart phone screen size not the banner , Is there a way I can make my banner responsive as well , or at least it whole board size shrink to screen size
User avatar
Elias
Registered User
Posts: 5152
Joined: Sat Feb 25, 2006 4:31 pm
Name: Elias

Re: Responsive Banner

Post by Elias »

This might help you out or you might find it useful:
viewtopic.php?f=64&t=2270871

Thanks
"Mystery creates wonder, and wonder is the basis of man's desire to understand." - Neil Armstrong
|Installing Extensions|Writing Extensions|Extension Validation Policy|
User avatar
Lumpy Burgertushie
Registered User
Posts: 69228
Joined: Mon May 02, 2005 3:11 am

Re: Responsive Banner

Post by Lumpy Burgertushie »

how about a link to where this banner image shows on your board.

you can simply give the banner a 100% width and auto height in the css that will automatically resize to what the container is.

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
sandraken
Registered User
Posts: 21
Joined: Thu Mar 24, 2016 3:52 pm

Re: Responsive Banner

Post by sandraken »

Lumpy Burgertushie wrote:how about a link to where this banner image shows on your board.

you can simply give the banner a 100% width and auto height in the css that will automatically resize to what the container is.

robert


Thank you Robert :)
paugom
Registered User
Posts: 1
Joined: Tue Jun 07, 2016 8:36 am

Re: Responsive Banner

Post by paugom »

I had the same problem, solve different banners showing a function of the resolution, it was with css. The solution to resize the banner was not good because the picture did not look good .
User avatar
Lumpy Burgertushie
Registered User
Posts: 69228
Joined: Mon May 02, 2005 3:11 am

Re: Responsive Banner

Post by Lumpy Burgertushie »

if you are going to use different sized images for different sizes then you do not simply resize the image by changing the dimensions in the css. you have to actually open the image in a graphics program and resize it properly.

however, doing it by using the width: 100% and height: auto usually works much better and does not distort the image when it expands and contracts it with screen size.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
WWu777
Registered User
Posts: 812
Joined: Tue Aug 14, 2007 12:40 pm

Re: Responsive Banner

Post by WWu777 »

Is there an HTML code that will make a banner responsive to the screen? One that doesn't involve editing CSS? Can you set a percentage instead of the pixels of the height and width?
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26874
Joined: Fri Aug 29, 2008 9:49 am

Re: Responsive Banner

Post by Mick »

Please start your own topic this one is over a year old.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧

Return to “[3.1.x] Styles Support & Discussion”