0

Sir I have these codes

<html>
<head>
<title>My Company</title>

<style type="text/css">

#box1{
float:left;
width:250px;
height:150px;
border:1px solid red;
padding:5px;
background:url(b21.jpg);
background-repeat:no-repeat;
background-size:contain;
}
</style>
</head>

<body>
<div id="box1">
<div style=position:relative;padding:5px;width:150px;height:50px;margin-top:20px;background:orange;color:blue;border:1px solid blue;font-weight:bolder;text-decoration:underline;>How are you</div>
</div>
</body>
</html>

I want to ask why these properties are not work in my inline style

border:1px solid blue;font-weight:bolder;text-decoration:underline
2
Contributors
1
Reply
11
Views
2 Years
Discussion Span
Last Post by JorgeM
2

You need to enclose your style values in quotes.

<div style="property:value;property:value">
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.