254 Answered Questions for the topic HTML
Html
04/02/19
How do I retrieve an HTML element's actual width and height?
Suppose that I have a `` that I wish to center in the browser's display (viewport). To do so, I need to calculate the width and height of the `` element. What should I use? Please include...
more
Html
04/01/19
How to open link in new tab on html?
I'm working on an HTML project, and I can't find out how to open a link in a new tab without javascript.I already know that `` opens the link in same tab. Any ideas how to make it open in a new one?
Html
04/01/19
How to add a tooltip to a div?
I have a div tag as follows: Name Now I want a simple javascript for displaying a tooltip on :hover the div....
more
Html
04/01/19
How to apply !important using .css()?
I am having trouble applying a style that is `!important`. I’ve tried: $("#elem").css("width", "100px !important");This does **nothing**; no width style whatsoever is applied. Is there a...
more
Html
04/01/19
How to force child div to be 100% of parent div's height without specifying parent's height?
I have a site with the following structure: The navigation is on the left and the content div is on the right. The information for the content div is pulled in through...
more
Html
04/01/19
target="_blank" vs. target="_new"?
What's the difference between `` and `` and which should I use if I just want to open a link in a new tab/window?
Html
03/29/19
Add border-bottom to table row <tr>?
I have a table of 3 by 3. I need a way to add a border for the bottom of every row `tr` and give it a specific color.First I tried the direct way, i.e.: But that didn't work. So I added CSS like...
more
Html
03/29/19
How do I get a div to float to the bottom of its container?
I have floated images and inset boxes at the top of a container using float:right (or left) many times. Recently I hit a need to float a div at the bottom right corner of another div with the...
more
Html
03/28/19
Multiple lines of input in <input type="text" />?
I have this text input in a form: I am trying to get it to take multiple lines of input. The width and height make the box to be bigger, but the user can enter text all (s)he wants yet it fills...
more
Html
03/28/19
Can HTML checkboxes be set to readonly?
I thought they could be, but as I'm not putting my money where my mouth was (so to speak) setting the readonly attribute doesn't actually seem to do anything.I'd rather not use Disabled, since I...
more
Html
03/28/19
CSS Background Opacity?
I am using something similar to the following code: Text I expected this to make the background have an opacity of 0.4 and the text to have 100% opacity. Instead they both...
more
Html
03/27/19
How to force link from iframe to be opened in the parent window?
I need to open the link in the same parent page, instead of open it in a new page.note : The `iframe` and parent page are **the same domain**.
Html
03/27/19
How do I reformat HTML code using Sublime Text 2?
I've got some poorly-formatted HTML code that I'd like to reformat. Is there a command that will automatically reformat HTML code in Sublime Text 2 so it looks better and is easier to read?
Html
03/27/19
offsetting an html anchor to adjust for fixed header?
I am trying to clean up the way my anchors work. I have a header that is fixed to the top of the page, so when you link to an anchor elsewhere in the page, the page jumps so the anchor is at the...
more
Html
03/27/19
How to make a HTML Page in A4 paper size page(s)?
Is it possible to make a HTML page behave, for example, like a A4-sized page in MS Word?Essentially, I want to be able to show the HTML page in the browser, and outline the content in the...
more
Html
03/27/19
Auto detect mobile browser (via user-agent?)?
How can I detect if a user is viewing my web site from a mobile web browser so that I can then auto detect and display the appropriate version of my web site?
Html
03/27/19
How do you easily horizontally center a <div> using CSS?
I'm trying to horizontally center a `` block element on a page and have it set to a minimum width. What is the simplest way to do this? I want the `` element to be inline with rest of my page. I'll...
more
Html
03/27/19
CSS hide scroll bar if not needed?
I am trying to figure out how I can hide the `overflow-y:scroll;` if not needed. What I mean is that I am building a website and I have a main area which posts will be displayed and I want to hide...
more
Html Microsoft Powerpoint
03/27/19
Open Source HTML5 Online PowerPoint Viewer?
I wondered if anyone is aware of any online PowerPoint viewers that are open source?
I've looked at http://www.accusoft.com/products/viewer/on-premise/info/overview/ which is the closest thing but...
more
Html
03/27/19
What's the difference between and <strong>, <i> and <em>?
What's the difference between `` and ``, `` and `` in HTML/XHTML? When should you use each?
Html
03/27/19
When to use IMG vs. CSS background-image?
In what situations is it more appropriate to use an HTML IMG tag to display an image, as opposed to a CSS background-image, and vice-versa?Factors may include accessibility, browser support,...
more
Html
03/27/19
Open URL in same window and in same tab?
I want to open a link in the same window and in the same tab that contains the page with the link.When I try to open a link by using `window.open`, then it opens in new tab—not in the same tab in...
more
03/26/19
Importing Html into Adobe Indesign?
We are currently working on an pdf version of a newspaper at work, we have a .net website which captures the articles to publish, storing the content entered as html, so we can maintain styles like...
more
03/25/19
Preloading 20MB+ of images. Is it worth it to attempt this? ?
I'm developing a photography portfolio website. I want to know what would the best practice be for downloading images from a database. As of right now the entire gallery is roughly 20MB. The...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.