CSS Border | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

CSS Border

Hey guys i was wondering how i make the css border width shorter I'm using a "double-border" so when i change the width it changes the space between the double border. I would like the border to be about half the page in length and not the whole page.

3rd Jun 2020, 10:35 AM
PGC official YT
PGC official YT - avatar
3 Answers
+ 5
Please, add your code here :))
3rd Jun 2020, 10:37 AM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
+ 2
Why dont you use outline property of css to adjust outer and inner border style , color , etc
3rd Jun 2020, 10:38 AM
Ayush Kumar
Ayush Kumar - avatar
0
p.double{ border-style: double; border-width: 10px; max-width: : 50px; } <p class="double"> <img src="Drig.png" width="110px" height="100px"/> <img src="dunsparce evo.png" width="110px" height="100px"/> <img src="griffauna.png" width="110px" height="100px"/> <img src="venomite.png" width="110px" height="100px"/> </p> [The code I put in]
3rd Jun 2020, 11:49 AM
PGC official YT
PGC official YT - avatar