Questions tagged as 'html'

4
answers

Image occupy entire column

I have the following html structure: <div class="col-8 ml-2 bg-secondary"> <h3 class="">Ultimas Notícias</h3> <div class="card"> <div class="row"> <div class="col-3 b...
asked by 19.03.2018 / 17:50
1
answer

Print single element on all print pages

I'm developing a WEB system and at the time of printing the precise screen I put at the end of each page a imagem , is it possible? So far I have the following code: .hide{ display: none; } <!DOCTYPE html> <h...
asked by 23.02.2018 / 16:02
2
answers

Generating id in input via foreach

I'm having difficulty generating a number in each input id. I need to display 4 images, and I saved their names in the database separating them with a comma, then gave them an explode to display them in foreach. $array = explode(',', $sqlImage...
asked by 30.11.2017 / 12:55
3
answers

How to get the title of an HTML page and return its value in JavaScript

I need to know exactly how to return the title of the page: <title> nome </title> Returning this way:    You are on the 'name' page. I've seen a question about a few years but I could not.     
asked by 09.01.2018 / 12:45
3
answers

Redirect users through a form

I need to create a simple html page, with only one form field type="number" . When the user clicks he is redirected to a url www.example.com/o_que_ele_digitou_no_formular Page Purpose: We are organizing an event and want the co...
asked by 08.12.2017 / 13:43
1
answer

Doubt about DOCTYPE and HTML tags

For many years I've been using these tags at the beginning of my pages: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtm...
asked by 22.01.2018 / 05:39
2
answers

I can not create a Modal with html

I'm trying to open a simple modal using HTML: .modal:target { opacity: 1; pointer-events: auto; } .modal > div { width: 400px; position: relative; margin: 10% auto; padding: 15px 20px; background: #fff; } <...
asked by 17.01.2018 / 12:52
4
answers

How to get height of a div by jQuery?

I have a small jQuery script for loading the page, a calculation based on the height of a div is added, and then a margin is added for the result. The problem is that you are not getting the height value of this div . In case, th...
asked by 01.10.2014 / 16:02
1
answer

Display link preview

Good evening, how do I create a preview link like facebook? I have no idea how to do that. If anyone can give me a light to know where to start, I would appreciate it.     
asked by 17.11.2017 / 05:43
4
answers

Center a table (HTML)

I made a table in my HTML , but I could not center it in the middle of the screen. It is vertical and I already tried to put text-align:center but it did not work. td, th { padding: .7em; margin: 0; /*border: 1px s...
asked by 07.11.2017 / 12:07