+ 1

About html & css

if i wanna make box in some words how i can make it and idk should put (div) cus this is wrong: <style> .blue_box { border: 10px; pandding: 0.5em; width: 150px; height: 100px; } and <h1 class="blue_box">test</h1>

10th Feb 2020, 1:09 PM
Ahmed Serageldin Moustafa
Ahmed Serageldin Moustafa - avatar
2 Respostas
+ 2
Try this: <div class="box"></div> CSS: .box { height:150px; width:150px; border:2px solid blue; background-color:blue; }
10th Feb 2020, 1:24 PM
NightFox
NightFox - avatar