HTML / CSS unwanted margin [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 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.

Related

HTML input field alignment [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 11 months ago.
Improve this question
How do you align input fields without using css or anything advanced? the first image is the required output and the second one is my output
i tried adding a bunch of spaces using &nbsp but it didnt seem right and the code looekd untidy
You can use a traditional html table and set the border to zero.
<table border="0">
...
</table>

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.

CSS margin too long [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 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.

Bold not working on a page but works on other pages and browsers [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
I am trying to create a small description tile on a web page and i realized that bold ( tag) isn't causing the desired effect(or any effect at all) on a particular page. This is the code that I am using, which to my knowledge is correct:
<div class="w48 contentBox contentBoxBlue" style="margin:1%;margin:0 auto;">
<img style="width:25%;margin-bottom:5%;" src="styles/images/piggyWhite.png" />
<p class="tWhite tCenter"><b>Pay Per Hire</b><br>Participate for free and pay per hire</p>
</div>
I tried looking around on stackoverflow but couldn't find any similar posts. Does anyone know what the problem could be?
Thanks in advance people!!
EDIT: This may be caused by any overriding css property.
It's possible that it may be being removed by another CSS rule, for example:
.twhite b { font-weight: normal; }
If you are using chrome, right-click on it and choose "Inspect Element", then see what CSS rules are being applied. That will give you your answer.

Add white space below a table on a page [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 7 years ago.
Improve this question
I appreciate that this question has been asked many times but nothing I have looked at has helped me.
Basically, I have a basic table. All I want is to have a bit of white space UNDER the last table (Other Important Pages) but I can't seem to accomplish this.
See here: http://chrisbrighton.co.uk/SiteMap.php
Any suggestions?
Thanks.
Add a bottom margin to the table.
Text Before Table
<table STYLE="margin-bottom: 30px;"><tr><td>Text In Table</td></tr></table>
Text After Table
Add overflow:auto to your #page-container div.
You can add <br /> tags between the tables or add margin-bottom: XXpx to the styling.