0

I don't know how to reduce my div tag spacing, can someone help?

The div tag does not work even if I specifically made them different tasks, and different sizes, check out my code COMPUTER PT or the other way around. The height of the div can't be changed even if I tried to change it, it only follows who has the bigger pixels

15th Oct 2023, 3:15 AM
Slimn Kuen
Slimn Kuen - avatar
3 Respuestas
+ 2
Slimn Kuen Some observations: 1. your css declaration is messed up. you have inline styling combined with css in the head tag and css in the css tab. it's a confusing mix. Plus I can see an overlapping declaration that have a closing bracket without an opening bracket. You should rewrite them in the same place in a more organized form. 2. your html tag nesting is problematic. You have p tags inside h tags and b tags that are closed in the wrong position. Do you even need b tags in h tags? this is wrong: <h1><p>...</p></h1> why are you putting p inside h? just use h. also this: <h3><b>...</h3></b> no need for b here, plus it is closed incorrectly. use: <h3><b>...</b></h3> if you feel you must use b. 3. if you want your div to fully show the contents, do not assign a fixed height to them. Then they can adjust to the content. 4. for spacing between divs and h tags, try playing around with margin-top and margin-bottom values.
16th Oct 2023, 10:18 AM
Bob_Li
Bob_Li - avatar
+ 1
Thankyou, very much, this helped.
24th Oct 2023, 12:38 PM
Slimn Kuen
Slimn Kuen - avatar
15th Oct 2023, 5:24 AM
Slimn Kuen
Slimn Kuen - avatar