CSS margin too long [closed] - html

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
We have a button in our app that we want to put a header next to, but can't because the margins to the right of the button seem to extend all the way to the edge of the screen. This is occurring even though the button has its margin-right property set to 0. Any suggestions as to how we can get a header to the right of the button?

Give your button display: inline-block;.
OR
Remove your btn-block class.

Are you using Bootstrap? Remove btn-block wrap the button in <div class="col-md-2"></div> & then have the header in another <div class="col-md-10"></div> otherwise you may need to provide more info.

Related

Why Does Flex Direction Column Disable Top , Bottom? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 months ago.
Improve this question
I'm trying to adjust the paragraph spacing and move it closer to the title, but Top or Bottom seems to be disabled when using flex-direction: column... What can I do to push up .par2?
Properties bottom and top work with position: absolute; elements. They don't work with other positions.
You have to use padding-top or margin-top with negative meaning (for example -10px).
And you can check properties margin and padding by headers ('CATORING', 'EVENT HOSTING', 'DELIVERY') using GoogleChrome Devtools. Most likely it is they who prevent the text from being located higher.

How to make <li> bullet show at the top of its content instead of the bottom? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I was just wondering if there's a quick and easy way to make an <li> bullet show at the top of its content instead of the bottom. This is just a simple <ul> with 4 <li>'s. See picture below for reference.
Screenshot
HTML snippet
I figured it out! I just need to add the d-block bootstrap class to the label to override the default display-inline-block CSS of the label.

why when i gave maring auto, my buttons displays under each other [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I have some buttons,i gave them margin auto and display:block. when i run it, margin auto runs correctly but buttons show under each other . can some one help me to solve this problem?
If you want the buttons centered but next to each other, wrap them in a div and put margin:auto on the wrapping div.

HTML / CSS unwanted margin [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I'm currently working on a nodejs / socket.io project. Somehow there's a margin ontop aligned, which is pushing the UI down. I can't seem to get rid of.
Does someone have a idea, what could cause this?
Link to the preview: http://pr0b.com:2000/
The username & password to authenticate are assigned so you guys could have a look.
Link to the screenshot
Code which is causing the problem:
<div id="belowGame">
<div id="chat-text"></div>
<form id="chat-form">
<input type="text" id="chat-input"></input>
</form>
</div>
This issue which was causing the overflow was the display: inline-block which was added to the .gameDiv. Simply remove this CSS rule and you will get what you've asked for.

Gap on right of website [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
When my site loads the view is correct but if you scroll right there is a gap. All div's have 100% width set and no padding on right... I went through each element to putting display:none trying to single the problamatic element but this didn't help either. A test version of the site is available at www.emma-cooper.co.uk
Take width:100%; out of the #logo CSS definition, and the right and left padding off the
div#hmenu definition (make it padding:0.8em 0;)