HTML CSS in 8 Hours: For Beginners, Learn Coding Fast! by Yao Ray
Author:Yao, Ray [Yao, Ray]
Language: eng
Format: epub
Publisher: In 8 Hours eBooks & Books
Published: 2020-06-28T16:00:00+00:00
Example 6.8
<html>
<style type = "text/css">
#b1{border-style: solid; border-width: 5px; margin: 30px }
#b2{border-style: dotted; border-width: 5px; margin: 0px }
</style>
<p id = "b1">This margin is 30px. </p>
<p id = "b2">This margin is 0px. </p>
</html>
Output:
Explanation: “margin: value” can set the margin width.
Absolute Positioning
The content position can be specified by position attribute.
position: absolute; top: value; left: value;
“position: absolute” sets the precise location of the contents.
“top: value” sets the distance from the top edge of the window.
“left: value” sets the distance from the left edge of the window.
Example 6.9
<html>
<style type = "text/css">
#a1{ position:absolute; top: 0px; left: 30px }
#a2{ position:absolute; top: 30px; left: 60px }
</style>
<p id = "a1">This is position1. </p>
<p id = "a2">This is position2. </p>
</html>
Output:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8300)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(6743)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(6718)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(6597)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(6381)
Driving Data Quality with Data Contracts by Andrew Jones(6329)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(6093)
Learning SQL by Alan Beaulieu(5995)
Weapons of Math Destruction by Cathy O'Neil(5779)
Big Data Analysis with Python by Ivan Marin(5365)
Data Engineering with dbt by Roberto Zagni(4363)
Solidity Programming Essentials by Ritesh Modi(4010)
Time Series Analysis with Python Cookbook by Tarek A. Atwan(3871)
Pandas Cookbook by Theodore Petrou(3579)
Blockchain Basics by Daniel Drescher(3294)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2905)
Feature Store for Machine Learning by Jayanth Kumar M J(2814)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2796)
Mastering Python for Finance by Unknown(2744)
