Right, so this is strange. This code works as expected:
HTML:
<section>
Section #1
</section>
<section>
Section #2
</section>
<section>
Section #3
</section>
CSS:
section{
margin-right: 30px;
}
section:last-child{
margin-right: 0;
}
The first two sections get a right margin of 30px, while the third section doesn...
I have a project that generates HTML pages using velocity template and Java. But most of the pages do not comply with W3C standards. How can I validate those HTML pages and get a log telling me what errors/warnings on what pages?
Then I can fix the errors manually.
I have tried JTidyFilter but that doesn't work for me.
...
I've got an HTML table, where some cells have dynamic content that will change height over time. Let's say I want to have one cell fill the bottom half with one color and the top half with another color. I'd like to do it with HTML/CSS such that as the other cells change height, the color cell will adjust to still be half-and-half (i.e...
Hi,
I have the common problem of implementing a "Please wait, processing your request" page in HTML to show to the user while a long running task is processing. Specifically, I am creating an order and billing a credit card.
Currently I am first loading PleaseWait.html showing a message and a spinner, which straight away redirects to ...
I'm displaying text inputs next to some label text in a fieldset. I'd like the baseline of the text in the text inputs to line up with the baseline of the label text. I could set a fudge factor padding-top for my .label elements but the content of my .value elements may contain read-only text and this would screw up the label/value basel...
When the following is rendered, the height parameter of image (img) isn't considered. However, if I vary the width in terms of % for example 80%, it resizes and aspect ratio is intact. If I mention height in terms of px it works. Problems occur only for height being in % and in all browsers.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01...
I have a Sketching app done in all HTML5 and Javascript, and I was wondering how I would create an Undo Button, so you could undo the last thing you drew. Any idea? Thanks!
...
I'm not a front-end programmer, but I first realized the issue just when I found the css.maxHeight is not supported by HTML4.0. when the DOCTYPE refers to HTML4.0, maxHeight in css doesn't work, but change the DOCTYPE to XHTML1.0, it works.
So, now have the question, What the difference between the support for css by HTML4.0 and XHTML1....
<form method="post" name="test" id="test">
<input type="hidden" name="listname" value="qpaustin" />
<select name="customCity" id="customCity" onchange="javascript:onChangeHiddenValue(this.value);">
<option value="qpneworleans" >qpneworleans</option>
<option selected="selected" id="listSelectionActiveOption" value="qpnewyork" >qpnewyork<...
i have a form, i want to send form data to two different action, can I do that in php
...
I am looking to create an Eraser for a drawing app in Canvas, and I have this code
canvas.clearRect(x, y, width, height);
How would i implement it?
...
I am using the following code -
jQuery(".form_" + form_count).html("<div id='message'></div>")
jQuery('#message').html("<center><h2><br><br>Thank You Your form has been submitted.</h2></center>")
window.setTimeout(function() {
history.go(-1);
}, 1950);
Now what i want is that after the previous page has been loaded using hist...
What is the difference between below 3 meta tags?
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="Expires" CONTENT="-1">
Do I need to use all those tags to avoid browser caching?
...
Hello,
I read that for many reasons its better you use full link paths between pages in my site.
The question is how can i debug and work on my local testing environment when all of the links are with full path?
(Manually replacing them is not an option...)
Thanks
...
I'd like to know how can I find HTML code formatting in Aptana Studio 3.0 which had shortcut Ctrl+Shift+F in Aptana 2.x?
...
I want to list options in drop down menu in HTML form but i need to make some options to be multiline .and the options i need to read them from text file.any ideas how to do that?
...
Hi guys, I need to pass information via a URL to a PHP function that parses the received data.
So basically when they click on the specific link, it will go to the specific page, but also send through the arguments and values for the waiting PHP function to parse them and depending on what the values are do specific functions.
eg: http...
In JSF, I am using panelGrid which is equivalent to table in html. How to set height=100% in it? width=100% exists but not height.
Thanks
...
I have some web pages. User can enter anything he wants into the forms which are in my web pages.
I want the special characters(which are visible and non visible on keyboard) to save in Database and retrieve them as it is.
Any suggestions ?
...
Hi,
Normally I would post the code of just the menu but the menu on its own works but when put in the surrounding code this menu fails to work in IE6 and IE7. So the menu can be found in use here: http://block.pd.alphaready.com/
I think the problem I am having here is the IE absolute positioning bug explained here
http://www.brunildo.o...