+ 4

Why is width="100" and width="100%" not the same?

4th Dec 2015, 1:25 PM
Evans Ibok
Evans Ibok - avatar
18 odpowiedzi
+ 11
"100" is the number of pixels 100% is 100 percent the normal size
4th Dec 2015, 5:59 PM
Brennan
Brennan - avatar
+ 5
100 refers to pixels, whereas 100% means that the element will fill its parent. Understand, however, that the parent is NOT always the page itself. For instance, it could be a div.
4th Jun 2016, 9:00 AM
Gabe Rust
Gabe Rust - avatar
+ 2
Fill in the blanks to create an h1 heading containing the text "My first website" followed by an h2 tag containing "Sample Page":
2nd Oct 2016, 10:14 AM
m.saleem. memon
m.saleem. memon - avatar
+ 1
Fill in the blanks to make the paragraph bold using the <b> tag: <h1>Some heading</h1> ______ I am learning HTML _______ </p>
2nd Oct 2016, 10:17 AM
m.saleem. memon
m.saleem. memon - avatar
+ 1
100% is mean its with is 100% compared to device width and 100 is means the width are 100px
7th Oct 2016, 8:13 AM
Krisna A. Haryadi
Krisna A. Haryadi - avatar
+ 1
width="100" means the width is 100 pixels while "100%" means the width will be equal to the parent of the element that has the attribute width="100%"
30th Oct 2016, 8:49 PM
Hasan Al-Yazidi
Hasan Al-Yazidi - avatar
0
by default width and are height are in pixels. we can set width and height in pixels, percentage or ems
6th Jun 2016, 8:14 AM
Arsalan MuhammadHussain
Arsalan MuhammadHussain - avatar
0
One has a % sign and the other one don't. Hope that helped you.
7th Jul 2016, 1:10 AM
Erick Hayes
Erick Hayes - avatar
0
Answer is No.
5th Aug 2018, 3:01 AM
Sanmugam D
Sanmugam D - avatar
0
No
15th Apr 2019, 5:50 AM
Nagalli Vijay Kumar
Nagalli Vijay Kumar - avatar
- 1
without the % sign attatched to it the "100" is expressed in pixels
8th Dec 2015, 7:24 PM
Franky K
Franky K - avatar
- 1
cause 100 is pixels and 100% is percentage of overall size of page.
15th Dec 2015, 12:04 AM
Carlos1y61
- 2
100 is the number of the width but 100%is just pixes
5th Jun 2016, 12:39 PM
Phew phew
Phew phew - avatar
- 3
because without the % it's 100pixel
28th May 2016, 12:39 PM
Matthias Pioch
Matthias Pioch - avatar
- 5
100% is how many % of the webpage and 100 is how many pixels.
29th May 2016, 12:15 PM
Gerhard du Preez
Gerhard du Preez - avatar
- 5
100% defines that 100% of the web page is used and 100px means 100 pixes are used
29th May 2016, 4:32 PM
Sampreet Gaonkar
- 5
100% is all page and 100 pixels is just 100 pix in all page
1st Jun 2016, 9:31 AM
Arsid Selgjekaj
Arsid Selgjekaj - avatar
- 8
100 means pixel while 100 % means to double the size lol
28th May 2016, 3:15 PM
Raj
Raj - avatar