html

full jpg image is not showing up in browser

I have just encountered a strange situation. I have some basic html: <table bgcolor="#FFFFFF" width="774"> <tr> <td align=center valign="top"> <br /> <a href="../../images/backlarge.jpg" target="_blank">Click here to see larger view of scorecard</a><br /> <img src="../../images/back_01.jpg" border="0" /><br...

How to move headings aside each other?

<h5>Category</h5><h6>auto</h6> and result: Category auto how do that: Category auto Sorry if my English is not perfect, I'm not a native. Thank you for your help. ...

How to do opacity for Text?

I have a div tag contain text: <div id="XXX" class="xxx"> fffsdssfdf </div> And the CSS like this: .xxx{ opacity :50; } But the Text doesn't opacity. ...

What does "semantically correct" mean?

I have seen it a lot in css talk. What does semantically correct mean? ...

How to prevent downloading images and video files from my website

it is possible ? what is the best way to do this ? ...

Browser detection versus feature detection

I’m going to play a devil's advocate for moment. I have been always wondering why browser detection (as opposed to feature detection) is considered to be a flat out a bad practise. If I test a certain version of certain browser and confirm that that certain functionality behaves is some predicable way then it seems OK to special case it....

Populating HtmlTable Control with HtmlTable object in ASP/C#

Hello, It apparently doesn't seem to be an impossible question, but I can't find a way to populate an HtmlTable control (which is accessible from codebehind) with an HtmlTable object already filled with data. Can anybody help me on this ?? Regards, EDIT In the ASP page, I have an HTML table with ID="table1" In codebehind, I first ...

How to disable Struts validation under certain conditions

The problem I have is that I need to disable struts validation when selecting certain conditions that will leave input boxes disabled and blank. Leaving these inputs empty causes the validation to fail which is not what I need ...

CSS Container DIv Height. Floating DIV questions.

Can you force a container DIV height to accomodate two floated div children? Is there a fancy trick I can use to do that? I am trying to make two equally sized divs inside the parent div. I would like them to appear side by side with a little whitespace between them. Child2 tends to pop out and go below Child1. Note Child2 contains a tab...

Check what is posted when submit button is clicked?

Is it possible to check what data is sent to the server when a "submit" button is clicked on a website? Don't know if it's important but the site is powered by CGI scripts. ...

Get all <a> elements in a page using javascript

Is there anyway I can get all of the <a> in a page, I want to apply a new targets to all of them. ...

Sort text files for web site view

How can I program a web site to list the 20 newest txt files (out of many more) in a directory and display them in order of newest to oldest and then link those files for web site viewing. ...

HTML snippet from Python

I'm new to Python and CGI, so this may be trivial. But I'd like Python to produce a block of HTML whenever a visitor loads a page. <html> <body> <!-- Beautiful website with great content --> <!-- Suddenly... --> <h1> Here's Some Python Output </h1> <!-- RUN PYTHON SCRIPT, display output --> </body> </html> Using a Python script that...

JavaFX Applet web-page refresh and close notifications?

Hi, How do I detect when user closes(navigates away) or refreshes web page with JavaFX applet in it. I want to do some clean up in my code on those events. Java Applet had some callback methods to do that, but how would I do it in JavaFX running in browser? Thanks, ...

What are valid / invalid names for HTML form tags in jQuery?

This flows from the error I ran into here jQuery $(’form’).serialize() returns only one element of a form serialized where having a form tag named "elements", like so: <form> <input name="elements"/> <input name="e2"/> </form> prevents you from accessing all the named elements of the form with jQuery's $('form').serialize() (i.e. you ...

'function' is not defined when <script> put in <head> segment of HTML

I have the following HTML and Javascript in a page that should display "TEXT" in the body and alert me with "alert!" However, it only displays "TEXT"; my Javascript console says "msg is undefined." <html> <head> <script type="test/javascript"> function msg() { alert("alert!"); } </script> </head> <body> <p> <script type="tex...

Dynamically hiding table rows with jQuery

I am trying to alternate background colors of table rows, each section starting with the same color. I have achieved this with the following code: $(document).ready(function(){ $("tbody tr.row:nth-child(even)").css("background", "#efefef"); }); I also need to be able to limit the number of rows (5 for example) that are visible inside ...

Why is some text size in the brower appear bigger while veiwing on a moblie device?

I just made a site for a bbq site and when you view the old75.com/home/contact/ page on a iphone, you will see that the content appears normal as the footer is in a more larger font. But the font size of the footer is the same as the content. Can anyone see why this could be? I have this problem on some other sites as well. ...

Have 2nd Html table cell span rest of screen

I have a table with two columns and one row, and 100% width across the screen. I want the first column to take up as much space as the content in it will fill. This content shouldn't take up the entire screen, so I'm not worried about wrapping. I then want the second cell to take up the remainder of the horizontal space. How would I ...

Stop a background image from disappearing in IE when the inline element spans 2 lines

On this page there is a list of footer links that have a little background image to place the dash before each one. This works fine in FireFox but in IE 6, 7 & 8 the background image for the item that spans 2 lines (Workplace Giving Employers) disappears. Why is this & does anyone know how to fix it? ...