Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css width percentage

<div style="background-color:navy;">
  <div style="width:50%; margin-left:20%; background-color:chartreuse;">
    Width: 50%, Left margin: 20%
  </div>
  <div style="width:30%; margin-left:60%; background-color:pink;">
    Width: 30%, Left margin: 10%
  </div>
</div>
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #css #width #percentage
ADD COMMENT
Topic
Name
2+5 =