inherit
268314
0
Oct 21, 2023 14:48:28 GMT -8
swaywolf
13
August 2023
swaywolf
|
Post by swaywolf on Sept 6, 2023 7:28:54 GMT -8
Is there a way to have the banner image adjust in size with the width of the forum? An example of why is the following: It overlaps the sidebar on some resolutions. Is there a way for it to size with the resolution of the forum?
|
|
Kami
Forum Cat
Posts: 40,196
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,196
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Sept 6, 2023 11:37:36 GMT -8
Is there a way to have the banner image adjust in size with the width of the forum? An example of why is the following: It overlaps the sidebar on some resolutions. Is there a way for it to size with the resolution of the forum? There is, but the issue would then be whether or not it's legible when changed to a size that fits without changing the aspect ratio (size of the font, any quality loss / blurriness). Happy to provide some CSS to help however: - Are the trade-offs (above) worth it? In other words, how many people use that resolution? Is it enough to offset the potential that the banner is no longer legible or is blurry? - Since you've customised your forum quite a bit, we would need a URL to your forum to make sure the solution accommodates any changes made away from the PB default that would impact the outcome.
|
|
inherit
268314
0
Oct 21, 2023 14:48:28 GMT -8
swaywolf
13
August 2023
swaywolf
|
Post by swaywolf on Sept 6, 2023 16:05:39 GMT -8
aelynrevival.proboards.com/That's the URL to the forum. If you can provide the CSS for it, I can put it in and see if it's something we want to keep or not. I'm familiar with how some of it works, but making the codes myself is not my strong suit. I appreciate your time!
|
|
Kami
Forum Cat
Posts: 40,196
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,196
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Sept 8, 2023 7:47:35 GMT -8
aelynrevival.proboards.com/That's the URL to the forum. If you can provide the CSS for it, I can put it in and see if it's something we want to keep or not. I'm familiar with how some of it works, but making the codes myself is not my strong suit. I appreciate your time! Sorry for the delay! OK, having a look you have two options here: a) have the banner adjust for the width of the browser up until the actual physical width of the banner (925px) OR b) have the banner adjust for the width of the browser even if it exceeds the original width of the image. Exceeding the original size of the image will make the image a bit blurry, but you may not find that a problem (it's pretty legible on my ultrawide for what it's worth). Either way, pop either of these into your stylesheet for this theme. I'd recommend the bottom, usually, but remember that stylesheets are cascading so if you have any other CSS that alters the banner space after this in the future, it may overwrite or negatively impact this particular change. / * === Adjust Banner Width (Max. 925px) === */ a#logo img { width: 100%; max-width: 950px; }
OR (do NOT use both!) / * === Adjust Banner Width (No Max) === */ a#logo img { width: 100%; }
Let me know how you get on -- I may need to adjust this to include one of the parent containers but I think this should be sufficient.
|
|
inherit
268314
0
Oct 21, 2023 14:48:28 GMT -8
swaywolf
13
August 2023
swaywolf
|
Post by swaywolf on Sept 8, 2023 19:08:45 GMT -8
I keep getting the error at the bottom no matter where I put it on the Style Sheet for that theme. What am I doing wrong?
|
|
inherit
223590
0
May 17, 2023 9:13:21 GMT -8
Kitty Katt
My Username is @kittykatt (with 2 t's in katt)
821
July 2015
kittykatt
|
Post by Kitty Katt on Sept 8, 2023 19:50:23 GMT -8
I keep getting the error at the bottom no matter where I put it on the Style Sheet for that theme. What am I doing wrong? You cannot have a space between the / and * on line 49 - they must be together: /* My guess is that Kami accidentally hit the spacebar when she was typing in the code. Edit: I would, however, take her advice and move that code to the bottom of your stylesheet. Edit #2: Here is Kami's first code (since that appears to be the one you are using) with the minor correction: /* === Adjust Banner Width (Max. 925px) === */ a#logo img { width: 100%; max-width: 950px; }
|
|
Kami
Forum Cat
Posts: 40,196
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,196
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Sept 9, 2023 5:51:32 GMT -8
Ah, my bad! Yes, accidental space. Thanks so much for helping out here, Kitty!
|
|
inherit
223590
0
May 17, 2023 9:13:21 GMT -8
Kitty Katt
My Username is @kittykatt (with 2 t's in katt)
821
July 2015
kittykatt
|
Post by Kitty Katt on Sept 11, 2023 5:19:37 GMT -8
swaywolf, Is this issue resolved for you, or are you still requiring assistance? Please let us know either way. Thank you.
|
|
inherit
268314
0
Oct 21, 2023 14:48:28 GMT -8
swaywolf
13
August 2023
swaywolf
|
Post by swaywolf on Sept 14, 2023 10:17:39 GMT -8
It is resolved, thank you!
|
|