Posts by Léo Cunha • 153 points
18 posts
-
1
votes1
answer177
viewsQ: CSS to SASS convert or not?
I have several files in css, I am in doubt if I rewrite it in Sass to be able to give a better maintenance in the future or not, is it really advantageous?
-
0
votes0
answers16
viewsQ: Submit to wordpress’s "admin"
I have created a custom page in the wordpress "admin" that has a text field and a upload button. I need to figure out how to send the page to be saved, but I can’t find anything on the web. Someone…
-
0
votes1
answer57
viewsQ: How to list specific subcategories for each page?
I would like to list within the category page.php the sub-categories of the specific page itself, I am using wp_list_categories() and trying to pass the id with get_the_category(), but I’m not…
-
1
votes1
answer85
viewsQ: How to print the second value of an array?
I have this array and want to put on the screen the string "Banana". $frutas = array ( "frutas" => array("a"=>"Laranja", "b"=>"Banana", "c"=>"Maçã"), "numeros" => array(1, 2, 3, 4, 5,…
-
0
votes4
answers182
viewsA: Adjustable design for mobile
The error is quite simple, adds a meta tag, to control the opening in the browser. <meta name="viewport" content="width=device-width" initial-scale="1.0"> This makes the mobile browsers behave…
-
1
votes1
answer367
viewsQ: How to send more than one checkbox option by email?
I’m trying to send more of a checkbox marked by email, with Phpmail, I can only send the last item marked, I tried to do an if with foreach more did not help, maybe I still can not do, as I can put…
-
1
votes1
answer64
viewsQ: Responsive site does not adapt on mobile
I made a responsive site, testing on sites that simulate a mobile phone, but when I open on a real mobile phone it does not adapt continues in the computer version.…
responsive-layoutasked Léo Cunha 153 -
0
votes2
answers940
viewsQ: How do I display the content of my wordpress pages?
My page is with header and footer and I would like to put the content between them, I know it should be a simple thing. <?php if ( have_posts() ): while ( have_posts() ): the_post(); endwhile;…
-
0
votes0
answers132
viewsQ: How to place a countdown with random numbers?
I’m trying to create a regressive product counter with javascript. Starting with a number I determine. Ex.: 357 After a few seconds. Ex.: 2s This value decreases randomly. Ex.: 159, 78, 25 I’m…
-
1
votes1
answer898
viewsQ: How do I fade in the page load?
I’m trying to make a fade-in effect so my page is opened using only CSS, would there be any way to do that? The browser is able to do this? I did some research and what I found I’m leaving here to…
-
0
votes1
answer1674
viewsQ: How to do an Exit Popup with jQuery?
I’m starting now to use jquery now, would like to know how I do to appear an image so mouse goes off the screen in a simple way but in order to learn how to do.
-
0
votes1
answer34
viewsA: Menu with border
I don’t know how to work with XHTML, but this is how I would do. .preco { margin-left: 20px; } .pagamento { border: 1px solid #C0C0C0; margin: 0 auto; width: 50%; border-radius: 5px; } .dropbtn{…
-
1
votes3
answers3465
viewsA: Hide text when it does not fit inside the div
All that remained was to specify the size of the div (.container-footer . txt") puts it like this: .container-footer .txt { float: left; margin-top: 15px; width: 75%; display: inline-block;…
-
0
votes0
answers147
viewsQ: Broken layout using grid
I’m using a grid system for my layout as seen below: .artigo { margin: auto; width: 70vw; display: grid; grid-template-columns: minmax(200px, 3fr) 1fr; margin-top: 90px; } @media (max-width: 1400px)…
-
1
votes2
answers2955
viewsA: Applying scroll to table keeping header fixed
Your jquery script is running before the page, just put the script at the end that solves the problem.
-
1
votes2
answers6249
views -
0
votes1
answer58
viewsA: Position text before content
I’d do it like this, I don’t know if there’s any other way. .Campos { margin-left: 90px; border: 10px outset #ffc70e; border-radius: 0px 25px 0px 0px; margin-top: 26px; width: 100%; } #conosco {…
-
2
votes2
answers482
viewsQ: How to add another day using "new date()"
Hello, I am with this function, but I do not know how to put an extra day in the date, someone can help me. var myVar = setTimeout(function(){ myTimer() }); function myTimer() { var d = new Date();…
javascriptasked Léo Cunha 153