SEARCH

The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Geek Stuff

(Solved) - Creating an ID for a <div> ----- CSS e.g <div id="example">

(3 posts)
  • Started 1 year ago by djhull3917
  • Latest reply from djhull3917
  • Topic Viewed 338 times

djhull3917
Posts: 112

for example

<html>
<head>
<style type="text/css">
h1
{
lalalalallaal;
lalalalalallal;
lalalalalalalal;
}
div id="example"
{
color:snklcn;
width:knklfn;
height:snkdkflnd ;
}

</style>

</head>

<body>

<div id ="example">
<h1>wdklnkl</h1>
</div>

Thanks Guys !

Posted 1 year ago
Top
 
djhull3917
Posts: 112

Then have all the css elements in the HTML

Posted 1 year ago
Top
 
djhull3917
Posts: 112

PROBLEM SOLVED,,,,, A CODING ISSUE TYPO (EXTRA SPACE)

Accepted Answer · Posted 1 year ago
Top
 



Topic Closed

This topic has been closed to new replies.