Posts by Venicio Pedrosa • 52 points
5 posts
-
-1
votes3
answers1976
viewsA: how to center a <H2> tag vertically inside the div
In the parent element use display: table and in the child element use display: table-cell. So the vertical-align: middle will work. .button-disciplina{ width: 80%; height: 150px; display: table;…
-
1
votes3
answers386
viewsA: Background image, without using background-image
html, body { height: 100%; width: 100%; margin: 0; padding: 0; } .artigo-main { height: 100%; width: 100%; text-align: center; position: relative; } .artigo-content { position: absolute; top: 50%;…
-
0
votes1
answer202
viewsA: Show template according to user status
Try to put the: authService.isAuthenticated().subscribe( success => this.isLoggedIn = success, error => console.log(this.isLoggedIn) ); within the ngOnInit()…
-
1
votes2
answers85
viewsA: Why is the H1 tag not generating a new line?
var mymodal = angular.module('mymodal', []); mymodal.controller('MainCtrl', function($scope) { $scope.html = [{ "name": "teste", "data": [{ "tag": { "name": "h1", "text": "Titulo 1", "colValue": ""…
-
1
votes4
answers3766
viewsA: How to create a clickable div?
<div id="myDiv"> Click me </div> <script> document.getElementById("myDiv").onclick = function() { alert('Clicked!'); }; </script>