« Back to the HTML Forum

is there any code to change the widht of a layout?

Posted by PAWESOME GUY SAM

posted
updated

Forum: HTML Group

I was wondering since i would like to make one of my layouts a little wider, i would appreciate if someone could help me 0_0


Report Topic

1 Reply

Reply by Zaz

posted

<style>

main{width:}

</style>


After the width either put a number and then a percent, for how much of the original percent of the width you'd like it to be OR put a number and then px for how many pixels wide you want it to be. Or a number and em, which is another measurement but I'm not entirely sure how it works. 


So, for example, you want to make your code be 150% of the original width?

<style>

main{width: 150%;}

</style>


Or, you want it to be 500 pixels wide?

<style>
main{width: 500px;}

</style>


I hope this helped what you were asking for! Might take some trial and error to see what width works for you and doesn't look strange. 


Permalink Report Reply