Posts by Ana Claudia • 371 points
7 posts
-
3
votes5
answers25953
viewsA: <input type="image" ...> with LINK and HOVER
You must use type="Submit" to style with css. Using type="image" Voce needs "src". For example: HTML <input type="submit" class="botao" value=""> CSS .botao { background: url('img/image.png')…
-
0
votes2
answers16510
viewsA: li - CSS spacing
Try to modify the float: .navbar .navbar-nav { display: inline-block; float: none; } .navbar .navbar-collapse { text-align: center; } img { max-width: 133px; height: auto; } The menu is breaking…
cssanswered Ana Claudia 371 -
7
votes2
answers9687
viewsA: What is the difference between the <span> and the class?
The span is only one HTML element while the class is used for manipulate any HTML element, for example, you can use it to style any element. See: CSS .nav { background-color: #000; } HTML <span…
-
1
votes1
answer448
viewsA: Problem with CSS button placement
Try adding this script: $(document).ready(function() { if($('#someElement').hasClass('has-error')) { $(this).find('span').css("padding-top","0px"); } }); Replace '#someElement' with the element that…
-
5
votes3
answers15283
viewsA: How to go to a part of a text on the same page by clicking on a link above
<section id ="top">Texto</section> <a href="#top">Clique aqui</a> The link goes to Section.
xhtmlanswered Ana Claudia 371 -
10
votes3
answers1335
viewsA: Why is it bad practice to use Javascript inline?
It’s easier to keep css and Javascript separate from html. You can reuse the code for other pages or projects. The page becomes lighter because the browser stores the css in the cache so when you…
javascriptanswered Ana Claudia 371 -
1
votes4
answers868
viewsA: Find current page and change Div style
For example: <head> <style> .active { background-color: #ccc; } </style> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>…
jqueryanswered Ana Claudia 371