Jump to content

Hi, im making a basic textbox in the markdownblock in squarespace
Could someone help me compose the code?

I have gathered some things already, but i am lacking the knowledge of making it finished
I want a indent on the left and right side of about 15 pixels, so the text doesn't hug the sidewalls that much.
I need too make the heading an actuall heading (#Heading 1)
This is what i have:


<div style="background-color:rgba(210,63,59,0.6);
vertical-align: middle; padding:40px 0;">

/// Colorscheme an opasity///


Ungdomsutvalgsleder

/// the heading///


<br>
Navn: example People
<br>
Tlf: ** ** ** **
<br>
E-post: example@hotmail.com
</div>

/// The text///

 

 

asdasdadsasdads.PNG

sadasdads.PNG

Link to comment
https://linustechtips.com/topic/739967-dropdownblock-squarespace/
Share on other sites

Link to post
Share on other sites

Remove the `0` after `40px` in padding and encase your heading with a <h3> or <h4> tag. :)

 

Here's my version:

<style>
    .ungdomsutvalgsleder {
        background-color:rgba(210,63,59,0.6);
        vertical-align: middle;
        padding:40px;

    }
</style>
<div class="ungdomsutvalgsleder">
    <h3>Ungdomsutvalgsleder</h3>
    <p>
        Navn: Ola Normann
        <br>
        Tlf: +47 ** *** ***
        <br>
        E-post: example@example.com
    </p>
</div>

283c4b40ee89b9bff60f91638dfda6c4.png

I don't have much experience with Squarespace's editor. But if you have the ability to, move the contents of the <style> tag into a CSS file for some cleaner markup.

Link to post
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×