0

Why is it that when i set the height and width of <div> it affects the alignment of my text

Borders in Css

9th Jul 2020, 11:38 AM
Wejuli Douglas Sironda
Wejuli Douglas Sironda - avatar
2 odpowiedzi
0
Hmm it will surely effect because your text alignment will be settled according to the its container. Suppose if you make any div width of 50% and chose text-alignment to right then what will happen! It will not totally go to right set the background color of div and you will come to know that how this works .. Have some exploration
9th Jul 2020, 11:57 AM
Ayush Kumar
Ayush Kumar - avatar
+ 4
Do you mind showing your code? Without it it's almost impossible to find what problem you're facing.
9th Jul 2020, 12:59 PM
Raj Chhatrala
Raj Chhatrala - avatar