Skip to main content

Display LayOut Part 2 | HTML Design










Hello Guys,
                   How are you, here Source for try at your own system or mobile,







HTML Source :-


<!DOCTYPE html>

<html>

<head>

<title> Display LayOut Part-2</title>

<link rel="stylesheet" href="DisplayLayOutPart-2.css" >

</head>

<body>

<div class="imgbox" id="img" >Image Box <br/>

<img src="img.jpg" alt="fjords" style="width:100%">

<button onclick="removeElement()"> Click Here to Using NONE</bu\

>

</div>

<div class="imgbox2" > Reset Box <br/>

<img src="img2.jpg" alt="forest" style="width:100%" >

<button onclick="resetElement()"> Reset</button>





<script>

function removeElement()

{

document.getElementById("img").style.display="none";



}

function resetElement()

{

document.getElementById("img").style.display="block";

}

</script>





</body>

</html>



and in CSS :-







body
{
 font:absolute;
}
.imgbox
{
float:lef;
text-align:center;
width:500px;
border: 2px dotted gray;
margin:10px;
padding:6px;
}
.imgbox2
{
 float: left;
 text-align:center;
 width:200px;
 margin:10px;
 padding:6px;
}
.button
{
 width:100%;
}






Image Source:-






Comments

Popular posts from this blog

Display LayOut Part 1 | set Layout using CSS

Display LayOut Part 1 | set Layout using CSS  Hello Guys, Kaise hai aap, Source of Display Lay out is here :- In HTML <DOCTYPE html> <html> <head> <title> Display Layout </title> <link rel="stylesheet" href="Display.css"> </head> <body> <div class="p">  <p>This Paragraph under Inline Block</p> </div> <br/> <br/> <br/> <div class="p1" > <p> This is Paragraph</p> </div> <br/> <div class="p2"> <p> This is Paragraph</p> </div> <br/> <br/> <div class="p3"> <p> This is Paragraph</p> </div> <div class="grid" > <div class="box a">A</div> <div class="box b">B</div> <div class="box c">C</div> <div class="box d">D</div> <div cl...