shaili_shah
-
Posts
111 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Posts posted by shaili_shah
-
-
you have to apply border-radius:
.submit {
border-radius: 25px;
} -
If you're trying to apply background images to
html
andbody
that fill up the entire browser window, neither. Use this instead:html{ height : 100%;} body{min-height : 100%;}
the reason why you have to specify
height
andmin-height
tohtml
andbody
respectively is because neither element has any intrinsic height. Both areheight: auto
by default. It is the viewport that has 100% height, soheight: 100%
is taken from the viewport, then applied tobody
as a minimum to allow for scrolling of content. -
universal selector apply style to all element so if you have another tag except h1,h2,h3 you must be apply style to parent class
-
i think you need to add double quotes arround function name
<button onclick = "someFunction()" >button</button>
-
SELECT DISTINCT city FROM station WHERE city RLIKE '*[aeiouAEIOU]$'
-
you can apply below style to div tag for set div side by side
display:inline-block
-
<h1 style: "background-color : blue;text-align:center">heading text</h1>
-
window is the global object,you can call an alert either by alert('hey'); or by referencing the global object specificially:window.alert('hey');
Both are the same.
-
<table border="1" width="50%" height="50%"> <tr> <td colspan="5">1</td> </tr> <tr> <td colspan="3">2</td> <td colspan="2" rowspan="3">3</td> </tr> <tr> <td rowspan="3">4</td> <td colspan="2">5</td> </tr> <tr> <td rowspan="2">8</td> <td rowspan="2">9</td> </tr> <tr> <td>6</td> <td>7</td> </tr> </table>
-
HTML:
<div class="item">
<img src="http://movingimages.files.wordpress.com/2009/10/earth-simulator-offers-peaks-into-our-planetary-future.jpg?w=780" alt=""/>
<p>My Caption here</p>
</div>CSS:
.item{
width:200px;
text-align:center;
display:block;
background-color: transparent;
border: 1px solid transparent;
margin-right: 10px;
margin-bottom: 1px;
float:left;
} -
HTML:
<button onclick="myFunction()">Click Me</button>
<div id="myDIV" style="display: none;">
This is my DIV element.
</div>Javascript :
function myFunction() {
var x = document.getElementById("myDIV");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
} -
var n = fruits.contains("Mango");
-
AJAX
in JavaScript
you have to add onreadystatechange ,it stores the function that will process the response from the server.
-
< div onkeyup="thenameofthefunction()" onclick="thenameofthefunction()">click</div>
-
you can use photoshop for this.
-
body.div { background: gray; height: 60vh; width: 60vw; margin: 20vh 20vw; }
-
Try this: <input name="txtName" type="text" id="txtName" pattern="[a-zA-Z0-9]+" maxlength="10">
-
- Improve your website's user experience.
- Improve your page speed.
- Fix broken links.
- Optimize your images.
- Optimize for local search.
-
you have to apply hover effect by using this approach:
.myclass { background-color:green } .myclass:hover { background-color:blue }
you can refer the below link:
https://www.w3schools.com/cssref/tryit.asp?filename=trycss_sel_hover
-
-
you must forgot to link your css file with html file:
<link rel="stylesheet" type="text/css" href="CssFileName.css">
-
order must be:
html,css,javascript
-
to apply style, you can try !important or override with id selector .
-
Content marketing is a strategic marketing approach focused on creating and distributing valuable, relevant, and consistent content to attract and retain a clearly-defined audience and, ultimately, to drive profitable customer action.
How to eliminate verticle space between Divs ?
in HTML/XHTML
Posted
one way is add style to p tag
p{
margin : 0!important
}
another way is remove empty p tag