It sounds like you are seeing a browser default. Most browsers have some styles built in by default which unfortunately often include margins and padding. A lot of developers will put a basic reset on the top of their CSS file, something like
*{margin:0;padding:0;border:none}
This will clear the defaults and only display margins/paddings/borders that you explicitly define.
If you only want to remove the space from that one element, try adding something like this to your stylesheet:
#sidebar{margin:0;padding:0}
This isn’t so much a wordpress thing as it is a general CSS thing to be aware of.
Related Posts:
- Remove blue underline from link
- CSS Background Opacity [duplicate]
- “Stray start tag footer” in html validator?
- HTML Width Percentage
- draw diagonal lines in div background with CSS
- How to set up fixed width for
? - CSS3 Transition not working
- Play multiple CSS animations at the same time
- Why are my CSS3 media queries not working on mobile devices?
- CSS3 Transition – Fade out effect
- CSS how to make an element fade in and then fade out?
- Style disabled button with CSS
- bootstrap 4 row height
- sass :first-child not working
- Twitter Bootstrap – add top space between rows
- Hex colors: Numeric representation for “transparent”?
- Text wrapping around a div
- Iframe’s overflow problem
- Show / hide div on click with CSS
- CSS to select/style first word
- img-responsive in Bootstrap does not work
- sizing div based on window width
- Enqueue Google Web Fonts Without Messing Up Symbols In URL
- How to modify/extend/override a core method?
- Overriding Gallery Margin
- Adding style sheet to specific page
- WordPress CSS head info – contents, expansions?
- How do I add a class to that is generated by >
- How to add a body class to all interior pages except the homepage
- add a CSS id to the body of a page in wordpress
- wordpress CSS styles – footer border do not show
- Can I use theme options to change two things at once?
- Possible to include ACF text field within inline style tag?
- wp_head function causes 30px blank space [closed]
- get_stylesheet_uri returns wrong path
- Include print style sheet
- De-registering a CSS file leaves it in the queue
- WooCommerce change number of columns in the frontpage
- Efficient way to edit WordPress themes
- How to add an RSS logo to my blogs header?
- Where Do I Find The Astra Default Font Family That All Text Elements Are Inheriting From? [closed]
- How does W3 Total Cache Load Images In Stylesheet via CDN? [closed]
- images within style sheet
- IE and WordPress
- How can I use one stylesheet for multiple sub-sites on my multi-site network?
- Child theme stylesheet not always overriding “index”
- How do I apply/target CSS to a specific user role or roles?
- Why is this jquery / java script code not working in mobile / in devices?
- Alternate stylesheet only works with absolute address for link?
- How can I remove the ::after CSS selector which is automaticaly appended to the_content()?
- How to create an optionally available stylesheet for visually impared users?
- Image getting out of container [closed]
- Clients website shows blank page [closed]
- Why is my child theme style.css not found (404) in the front-end? [closed]
- functions.php – inject inline css from file
- Changing navigation strip color with CSS
- How to Add a Read-only Textbox With Text in it That Has a Button to Copy it?
- How can I make css inline?
- Namespacing theme CSS
- Use Google Fonts and unicodes
- Conditionally print css style in WordPress
- Adding elements to wp_list_pages (within , but before )
- WordPress is not displaying CSS file
- Change class names dynamically added to html elements by wordpress
- Page versus post ID specific CSS ID?
- Add classes + taxonomy terms to wp_list_pages() output
- Why doesn’t WP recognize images in posts like other content? [closed]
- Chat window hiding behind Twenty Eleven header
- CSS for the main top menu appears to have stopped working after All-In-One Migration transfer
- Css will not display in webpage, after adding it in style.css in child theme
- Hide Tab Titles from Tabs Block
- Hide product variations at home page
- wp_list_pages two columns
- TinyMCE on frontend style not working
- WordPress childtheme not loading any CSS/SCSS
- Why can’t blocks be hidden with jQuery?
- Bootstrap Integtration
- H2 On Blog/Article Page Gets Assigned a Class
- HTML not resizing
- Help locating old custom_css in PHP MyAdmin
- I would like to achieve a two column checkout page
- Style not being applied to newly installed themes
- Make Responsive Specific Page in WordPress
- How to get homepage div container of wordpress website to display full width? [duplicate]
- CSS in child theme to replace !important in parent theme
- How would I add this code to a single WordPress page?
- WP theme update causes child theme CSS problems
- How to change menu hover color to white on my theme? [closed]
- Wesbite super slow on iphone / very fast on desktop with same connection on wifi
- Display different css or Information based on previous page
- Color Picker – Theme options
- Extending site width according to the image size
- How to edit wordpress native gallery’s css file?
- Animate.CSS with a child theme
- why css doesnt work when i change my file of wordpress and sql to another computer?
- Change Twenty twelve theme background color
- remove author and date from all posts [closed]
- Add woocommerce plugin in own theme
- Change sidebar product category text color (woocommerce) [closed]
- Can physically see CSS changes occur when refreshing page