Responsive Banner

For support and discussion related to templates, themes, and imagesets in phpBB 3.1.
Anti-Spam Guide
Post Reply
sandraken
Registered User
Posts: 21
Joined: Thu Mar 24, 2016 3:52 pm

Responsive Banner

Post by sandraken » Wed Apr 27, 2016 1:09 pm

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: 4597
Joined: Sat Feb 25, 2006 4:31 pm
Location: In the Water!
Name: Elias
Contact:

Re: Responsive Banner

Post by Elias » Wed Apr 27, 2016 10:44 pm

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: 63196
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Responsive Banner

Post by Lumpy Burgertushie » Wed Apr 27, 2016 10:59 pm

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
I am available for custom work on a donation basis. Please send me a PM with your needs.
Premium phpBB 3.2 Styles by PlanetStyles.net

New phpbb 3.0 support site

sandraken
Registered User
Posts: 21
Joined: Thu Mar 24, 2016 3:52 pm

Re: Responsive Banner

Post by sandraken » Thu May 26, 2016 6:12 pm

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 » Tue Jun 07, 2016 9:15 am

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: 63196
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Responsive Banner

Post by Lumpy Burgertushie » Tue Jun 07, 2016 2:14 pm

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
I am available for custom work on a donation basis. Please send me a PM with your needs.
Premium phpBB 3.2 Styles by PlanetStyles.net

New phpbb 3.0 support site

WWu777
Registered User
Posts: 514
Joined: Tue Aug 14, 2007 12:40 pm
Contact:

Re: Responsive Banner

Post by WWu777 » Wed Nov 22, 2017 5:49 pm

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: 18110
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Responsive Banner

Post by Mick » Wed Nov 22, 2017 6:54 pm

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

There are no ‘threads’ in phpBB, they are topics.
Forza Garibaldi

Post Reply

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

Who is online

Users browsing this forum: lurapag, oBot and 8 guests

cron