Answer the question
In order to leave comments, you need to log in
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
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 .
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 questionAsk a Question
731 491 924 answers to any question