Category "html"

How to format figcaption to not stretch a min-width figure

I use the following markup to present an image and its caption. HTML: <div class="fig-container"> <figure class="captioned-figure"> &l

Create new div-tabs with Javascript

I have a huge question about how to create div with JavaScript. In this case, I have tabs and I would like to be able to create a new one out of two variable ob

CSS :before on inline SVG

Update Thanks porneL for pointing out the relation between generated content and replaced elements. I found this article which deals with this very topic: Int

Center align text in select drop down for all browsers

How do I Center align text in select drop down for all browsers? Its center aligned in Firefox, but it comes to left in Chrome and Safari. CSS: .challenge{

Embed wmv in all Chrome, IE and Firefox

The code below works in IE, Firefox but not Chrome. What change is necessary to make it work in Chrome. Chrome says "No plug-in available to display this cont

How to fill 100% of remaining width

Is there any work around to do something like this work as expected? I wish there were something like that width:remainder; or width:100% - 32px;. width: auto;

HTML & CSS: Can't remove spacing between elemens

I'm having a hard time to remove the spaces between html elements. I tried display: inline-block, float: right, ul view and many other ways. As you can see in t

Does Canvas redraw itself every time anything changes?

I have done some research on how canvas works. It is supposed to be "immediate mode" means that it does not remember what its drawing looks like, only the bitma

What is the best way to break HTML text on slashes (/)?

I have an HTML table 360px wide, which works great. The challenge is that sometimes a url appears http://this/is/a/really-really-really-really-really/long/url i

how to display web browser console in a webpage

I just want to create the same replica what we have seen on the web console, there is any option for that? I am making a debugging tool so I want to show all t

Does Canvas redraw itself every time anything changes?

I have done some research on how canvas works. It is supposed to be "immediate mode" means that it does not remember what its drawing looks like, only the bitma

The "MailTo" ...setting a proper name on the Recipient

How do I set a proper name for the recipient when in HTML I want to use the "mailto" tag. Something like: mailto:"John Wayne([email protected])?subject.. How do

Processing does not show up in webpage

I have a processing program which I want to display on a browser in an html file. I found an instruction on https://cs.nyu.edu/~kapp/cs101/processing_on_the_web

Javascript detect if child of parent element has a class set

This is my code: <div id="main"> <div class="myclass"></div> </div> How can I detect if inside of maindiv there is an element

How can we protect our image being copied from our web site

How can we protect our image being copied from our web site? Can we disable copying image content from our website or any?

Can't define cell height with word-wrap

I would like make the table with auto word-wrap when it possible. I'm using white-space: pre-line; css-class property. But then cell height will be changed. See

Lazyload images in three CSS3 columns

I have a website which displays images in three columns. These are all img tags in a div which has column-count: 3 applied. These columns contain over a hundre

Pandoc cannot find image path referenced in external HTML file pulled into R Markdown, despite using here() package

I am producing an HTML document through R Markdown, which uses a few external HTML documents for headers and footers. I am also using the here() package to allo

IE11: Printing infinite pages

Basically, in IE11, when you try to print preview (or print, for that matter) this page (and a few others on this site), the page never renders in the preview p

What happens if I don't put a <!DOCTYPE html> in my code? Will it make any major changes?

I'm working on several projects with HTML, and sometimes I forget to put <!DOCTYPE html>. Will it make any big or noticeable changes?