The difference between the difference in paragraph size

Here's the fiddle: http://jsfiddle.net/BE4sy/

Essentially, I would like to bridge the gap between the two paragraphs. I understand that this is a very inexperienced question, but I cannot figure out how to do this.

Here is the code:

HTML:

<p id='big'> Big Text </p> <p id='small'> Small Text </p>` 

CSS

 #big { font-size:100px; } #small { font-size:20px; } 
+4
source share
4 answers

Just give them margin: 0 , look: http://jsfiddle.net/BE4sy/2/

+1
source

Setting the field changes the spaces:

 p { margin:0; } 
+1
source

Change css with this code

 #big { font-size:100px; padding:0; margin:0; } #small { font-size:20px; } 
+1
source

Try to install

 #big { font-size:100px; line-height:0px; } #small { font-size:20px; line-height:0px; } p { margin:0; } 
0
source

Source: https://habr.com/ru/post/1492680/


All Articles