Changing banner content size- Swell
-
Hello,
I’m new to CSS…just wondering how to change the banner content to be much bigger (where it says High End. Affordable. Videos).
Thanks for your help in advance!
The blog I need help with is: (visible only to logged in users)
-
Hi there,
By changing the content size if you meant the font-size, then you can do that by just using the “font-size” property of CSS.
Edit the font-size property of the following code:#banner-content p { font-size: 1em; line-height: 1.5em !important; padding: 0; margin-bottom: 40px; color: rgba(255,255,255,.7); }to this:
#banner-content p { font-size: 1.2em; line-height: 1.5em !important; padding: 0; margin-bottom: 40px; color: rgba(255,255,255,.7); }this will increase the size of the contents of the banner. If you want you can also bold the contents inside the banner using the “font-weight” CSS property, like this:
#banner-content p { font-size: 1.2em; font-weight: 900; line-height: 1.5em !important; padding: 0; margin-bottom: 40px; color: rgba(255,255,255,.7); }More about CSS font-size property here: https://www.w3schools.com/cssref/pr_font_font-size.asp
More about CSS font-weight property here:
https://www.w3schools.com/cssref/pr_font_weight.aspLet me know if this helps :)
-
-
Oh sorry. One other question. How do I stretch the text in the banner to be on one line?
Thanks for all your help!
-
Sorry but I did not understand what did you mean by stretching the text.
If you mean to keep the text on one line on all display sizes you can do that bay changing the “font-size” unit, remove the height and width CSS property and also remove the flex related CSS properties.
Your new code for the banner text should look like this:
#banner-content p { font-size: 4.6vw; font-weight: 800; line-height: 1.5em !important; padding: 0; margin-bottom: 40px; color: #ff0064; opacity: .4; border: none; }This will keep the banner text in one line by resizing the text relative to the display width.
- The topic ‘Changing banner content size- Swell’ is closed to new replies.