summary refs log tree commit diff
path: root/05/question.txt
diff options
context:
space:
mode:
author1970-01-01 00:00:00 +0000
committer2025-01-14 03:20:53 +0000
commit588e25e5d0a30c25ca952ccaa1a2f1f1c92a03f6 (patch)
treef1dbc0e6ff59af610a6043889606a8534ef6b1d4 /05/question.txt
parentrescue 12 (diff)
downloadhtml-588e25e5d0a30c25ca952ccaa1a2f1f1c92a03f6.tar
html-588e25e5d0a30c25ca952ccaa1a2f1f1c92a03f6.tar.gz
html-588e25e5d0a30c25ca952ccaa1a2f1f1c92a03f6.tar.bz2
html-588e25e5d0a30c25ca952ccaa1a2f1f1c92a03f6.tar.xz
html-588e25e5d0a30c25ca952ccaa1a2f1f1c92a03f6.zip
rescue
Diffstat (limited to '05/question.txt')
-rw-r--r--05/question.txt34
1 files changed, 0 insertions, 34 deletions
diff --git a/05/question.txt b/05/question.txt
deleted file mode 100644
index 83ed51e..0000000
--- a/05/question.txt
+++ /dev/null
@@ -1,34 +0,0 @@
-Question:
-You have learned how to add id and class attributes to an HTML
-element. Can an HTML element contain both an id and a class value?
-If so, provide an example of a style rule for the id and the class.
-
-Answer:
-Elements in HTML can use both a class and an id. In fact, I just
-did this during my unit 1 project. Here is the CSS I used, as
-well as an example of div elements using both a class and an id.
-
-CSS:
-.col{
-	position: fixed;
-	width: 30%;
-	height: 100%;
-	overflow-x: hidden;
-	z-index: 1;
-}
-#left{
-	left: 0;
-	padding-left: 18%;
-}
-#right{
-	right: 0;
-	padding-right: 18%;
-}
-
-HTML:
-<div class="col" id="left">
-	<p>...
-</div>
-<div class="col" id="right">
-	<p>...
-</div>