Solved

How do i set padding within the sidebar?

Posted on 2016-11-26
2
43 Views
Last Modified: 2016-11-26
I had this question after viewing How do i remove the outer scrollbar?.

At present the text is too close to the edge of the sidebar.

How do i add padding of 20px to the contents of the sidebar?


Many thanks
0
Comment
Question by:Daniish
  • 2
2 Comments
 
LVL 56

Expert Comment

by:Julian Hansen
ID: 41902440
What sidebar are we talking about - could we see some code / a link / a page / anything that would give us something to work with.
0
 
LVL 56

Accepted Solution

by:
Julian Hansen earned 500 total points
ID: 41902443
Try
.leaflet-sidebar > .leaflet-control {
	padding: 20px; 
}

Open in new window

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question