M
M
Mr.nobody2018-04-06 12:40:53
css
Mr.nobody, 2018-04-06 12:40:53

Where is the error in the HTML code, CSS?

Hi all. I study HTML, CSS and along the way I make a brief reference-summary for myself, gradually applying the acquired knowledge. When opening the index.html file in the browser, all blocks are located correctly, and the "List of definitions" block (line 192, id="definition-list") is pressed even more to the right of the others. Why? Rechecked styles, tags. Why did this happen, tell me. I will also be glad to hear comments, criticism on the rest of the code. sandbox

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nikita, 2018-04-06
@Rema1ns

because width: auto stands

M
Mr.nobody, 2018-04-06
@no_one

reason:
1. there is not enough content in the block
2. the block has width: auto and float: right
as a result, it not only presses to the right, but also decreases in size
solution:
- remove float: right
Thanks Gortyser Gortyser and Nikita Nikita .

A
adrenalinruslan, 2018-04-06
@adrenalinruslan

Make for one block:
float:left;
width: 70%
And for the second:
float: right;
width: 30%

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question