Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

AcademyKP03

Members
  • Joined

  • Last visited

Everything posted by AcademyKP03

  1. Can you explain how to link the HTML and CSS together? ie so the HTML code references the CSS code? I don't see any body / head / html in the HTML code Much appreciated John
  2. All, This is my first post - ever. I'm a beginner. My question is fairly simple ... I'm trying to align the text that is the the blue element (div 3) so that its centered both horizontally and vertically. I accomplish the horizontally by using, text-align: center - - but how do I center it vertically?? Much appreciated! John HTML CODE: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <Title>Color Blocks</title> <link rel="stylesheet" type="text/css" href="colors_rel.css" /> </head> <body> <div class="one">One</div> <div class="two">Two</div> <div class="three">Three</div> <div class="four">Four</div> </body> ------------------------------ CSS CODE: div { position: relative; width: 250px; height: 100px; border; 10px single black; color: black; } div.one { background-color: greenyellow; padding-left: 180px; padding-right: 80px; padding-top: 80px; } div.two { background-color: green; } div.three { position: absolute; background-color: blue; right: 1200px; top: 120px; z-index: 4; border-style: solid; border-width: thick; text-align: center; } div.four { background-color: yellow; text-align: right; }

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.