- allcatsmeow2
Learning To Code: HTML Part 6
Hello Dolls!
Finally, it's time for Part 6 of Learning How To Code: HTML!
Just as a reminder, this is our code so far:
Hi! I'm a basic presentation!
Next, we'll add set the width and height of the presentation. I set the width of the presentation by adding width:100px; and I set the height of the presentation by adding height:50px;. 100 and 50 are just the automatic sizes I set to the presentation. Feel free to test with several different amounts of pixels (px).Our code is now:
Hi! I'm a basic presentation!
When tested, the code prints out:Hi! I'm a basic presentation!
If the height and width aren't assigned, the width of the presentation will automatically be as long as the screen, and the height of the presentation will automatically be the height of the text.
Looks more like the original preview, doesn't it? It's almost done. Second to last, add text-align:center; to the code. The text is automatically aligned to the left side of the presentation unless the alignment of the text is set. Text-align: center; tells the computer to align the text to the center.
Continued in Part 7 . . .
STARBLOGGER STARDOLL
- 2010vampire Posting yang ditam…: "The NEW Disney Wizards"
- midnightmonkey627 Posting yang ditam…: "Styling OOTM 2023"
- Vulacano10624 Posting yang ditam…: "CallieCon AMA - Q&A with Vulacano106 - Part 2"
- Elizabeth_C.K.28 Posting yang ditam…: "HOMEMADE SNACKS RECIPES #3 - Popcorn"
- Justanother.18 Posting yang ditam…: "5 Art Ideas- Get Creative!"
- PIMIENT0 Posting yang ditam…: "Stranger Talks"
- Dadaliana268 Posting yang ditam…: "Suite Design for a Sweet Dime #2"
- allcatsmeow2 Posting yang ditam…: "Cat-O-Ween Con: Black Widow Edition!"
- -sassychic1998 Posting yang ditam…: "virtual styling 12"
- imweirdo Posting yang ditam…: "My thoughts on a climate crisis"
- madmadeleine69 Posting yang ditam…: "Sauteed Chicken Breast Pan Gravy"
- muge_derin Posting yang ditam…: "Starcoin Outfits #12"