• Resolved asfhrrrt1

    (@asfhrrrt1)


    Hi there,

    I’ve just started my first website (www.eurasianwhispers.com) and I’m completely new to all this sort of thing, so please bear with me!

    I’m using the Ajaira theme and it’s been great so far, but I’ve come across some problems since turning the right sidebar into a left sidebar.

    As instructed, I added the following code to appearance-editor-style.css:

    #primary {
    	float: right;
    	padding: 0 2.5em 0 0;
    }
    #secondary {
    	float: left;
    	padding: 0.333em 0 0 2.5em;
    }

    and that’s transferred the sidebar over to the left perfectly. However, there is now absolutely no space at all between the content of the posts and the sidebar…

    Does anybody know what code I need to enter (and into what part of the editor) in order to adjust the space?

    Thank you in advance,

    asfhrrrt1

    • This topic was modified 7 years, 7 months ago by asfhrrrt1.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Put some left padding on #primary — 1em should do it nicely. You have it at zero.

    Thread Starter asfhrrrt1

    (@asfhrrrt1)

    Hi Steve,

    Thank you for getting back to me so quickly. Would you mind explaining exactly how I do this (I’ve never done any sort of coding before)?

    Do I just go to:

    #primary {
            float: right;
            padding: 0 2.5em 0 0;
    }
    #secondary {
            float: left;
            padding: 0.333em 0 0 2.5em;
    }

    and type #primary — 1em at the top of the screen before updating the file?

    • This reply was modified 7 years, 7 months ago by asfhrrrt1.
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    It looks like you’ve already fixed it

    View post on imgur.com

    Thread Starter asfhrrrt1

    (@asfhrrrt1)

    Ah yeah, that’s great, I guess it just took a couple of refreshes to come into effect.

    One last question: do you know how I can reduce the white space between the edge of the screen and sidebar on the left (and the edge of the screen and content)? I don’t want it right up against the screen, but an extra centimetre on both sides would be perfect.

    Thanks for your help

    It’s not clear what you’re trying to achieve. Do you mean you want to move the left sidebar more to the left? Or are you talking about the black menu bar maybe?

    Thread Starter asfhrrrt1

    (@asfhrrrt1)

    Thanks Paddor, I moved things around a bit and was happy with the result, so no need to change anything now.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Please help with my margins and spacing’ is closed to new replies.