html

Doubt in css selector > [#id (.class1 or .class2)]

Hi, I think that it should exist a better way of doing this... I'm using the follow css selector #book_form .ano_chegada, #book_form .ano_partida {...} Html: <form id="book_form"> <input class='ano_chegada' .../> <input class='ano_partida' .../> </form> I really don't like to repeat the form id twice. Is it strictly necessary? I...

How do I create a circle or square with just CSS - with a hollow center?

It should just basically be an outline of the square or circle - that I can style accordingly (i.e. change the color to whatever I want, change the thickness of the border, etc.) I would like to apply that circle or square over something else (like an image or something) and the middle part should be hollowed out, so you can see the ima...

What version of HTML is used on Struts Tags?

Are the Struts2 Tags compliant to the HTML 4.01 strict standard, the HTML 4.01 transitional, XHTML 1.1 or something else entirely? ...

Web Form Design - How to speed up?

Hey all, I am just going to be honest and say that I hate building web forms. I am a programmer, not a designer but frequently get stuck building input forms for various web applications. I would really like to find a utility for doing this in a more visual manner. The problem I have found in the past with products like this (cough c...

Fit divs into fixed space.

This is what I am trying to do : HTML <div class="container"> <div id="one" class="child">One</div> <div id="two" class="child">Two</div> <div id="three" class="child">Three</div> <div id="four" class="child">Four</div> </div> CSS <style type="text/css"> .container{ height:40px; width:500px; ...

Having a child page resize parent without invoking parent hosted script?

I currently have two html pages, a server hosted page, and a client hosted page, both on the same domain. The server page, has an iframe sourcing the client page. I want the parent page iframe to resize based on the child pages content. To accomplish this I have a bit of javascript that sits on both pages. The client(child) page determ...

Request Error (invalid_request) - Android Browser

I have a basic Jetty server running locally. If I pull up http://localhost/servlet1 in a web browser on my desktop, I am able to see proper content (basic html page). However, when I navigate to this site in the Android Emulator (2.2), I get the following error: Request Error (invalid_request) Your request could not be processed. ...

Short Sitemap question

If I have a sitemap_index.xml file and have it in root of my website. Then I have a sitemap.xml file located a couple of directories down, which I referr to in the sitemap_index.xml file. Will I be able to have urls inside the sitemap.xml file which are on higher levels than itself is, for example in the root directory? Thanks EDIT: ...

How to compare XML element with XSL variable

I am using xslt to transform an xml document to html for use in an email. I need to compare xml elements with another xml element value so that I know what format to give the value. Basically I have an xml structure as such: <main> <comparer>1</comparer> <items> <item> <name>blarg</name> <values...

php "glob" pattern help

I have a directory with sitemaps, which all end with a number. I have an automatic sitemap generator script which needs to count all sitemaps in a folder using glob. Currently I am stuck here. What I need is to count all sitemap files which has a number in them, so I don't count the ones without any numbers. For instance, in my root ...

What permissions should I set the sitemap to?

What permissions should I set on the sitemap_index.xml and sitemap.xml on my server? Thanks ...

Android - Options for pulling data from a website? (HTML)

I was wondering what the best approach is on Android to retrieve information from a HTML page hosted on the internet? For example I'd like to be able to get the text from the following page at the start of each day: http://www.met.ie/forecasts/sea-area.asp I have been downloading and parsing XML files but I have never tried to parse i...

How do I create a "sticky" dropdown menu in pure CSS?

Effect I'm trying to achieve: In Twitter's new redesign, they implemented a "sticky" dropdown menu for the account settings area. Basically, when you click on your username in the black global nav bar at the top, a menu is toggled open and stays open until you click on one of the links or on your username name again to toggle it close...

Is there a specific order that HTTP tag attributes should be listed in?

Should the attributes of any particular HTML tag be listed in a specific order? Is there a convention for the order? For example, I have the following image tag in an HTML strict page... <img src="http://example.com/media/graphics/border_bottom.png" class="border" height="5px" width="600px" alt="Lower Border" /> Should the src be li...

CSS linked images are being underlined ("a" display is set to block)

Hi, I have a menu for which I wanted all of the space around the text, within each individual item, to take the user to the specified page. I looked around on the web and found that the best solution is to set the "a" display to block, as follows: a { display: block; height: 100%; text-decoration: underline; } I have mana...

Is there a way to pull valid script from html content and execute it using jQuery?

Say I have a something like this: <p id="script">$("p").css("color", "red");</p> Is there a way to select the script contained within the tag and execute it using jQuery? In this case, the script $("p").css("color", "red"); would be executed and then cause itself to be rendered with a red font color within the paragraph tag. I can...

Remove blank line on every web page

I have 3 blank lines at the beginning of every page that is causing errors of an add-on with stamps.com. (PS I have worked closely with their support team). I can see the lines using firebug, but don't know which file is causing them. I am trying to REMOVE these lines but can't seem to locate them in the header and main_page php files, f...

Dynamic Flash FLV Player

I am attempting to create a custom FLV player in flash that will allow me to link to an external FLV file in the html object code. This is in order to easily change a video that will appear on a client's index page dynamically. Currently I am using an external player that does exactly what I wish to do (http://www.walkernews.net/mediapla...

Prevent &amp; from showing up html

hey, On my html document for some reason instead of printing what it's suppose to be, it's just displaying &amp; encoding is utf-8 any ideas? Thanks ...

How can I populate the textbox of an HTML file input?

This one has got me stumped. I am currently rendering a form using ASP MVC, it has a bunch of fields, one of them is an <input type="file"... The file upload works great, but when I return the form to the user, the textbox that contains the file is empty. I would like to show the filepath in the textbox, but it appears the value field...