html

How to avoid wrapping in CSS float

Hi I have a page with 2 columns side by side (defined both by float: left). My problem is, when I scale the browser to be smaller, the right column will be dropped below the left column. how can I avoid this? and still to make them be side-by-side no matter the screen size. Thank you ...

Refresh and unload event

In my page, i have some functions registered to unload event. The functions are called, when i refresh the page, meaning the unload event happens. But this fails when i come to the page after submitting a form. When i refresh, it asks if it can send the data again (submit the form again) i give okay and the page reloads. But the function...

Prevent images loading in html

I'm developing a mobile version of a website, unfortunately because of the archaic CMS in use it's not possible for me to alter or offer an alternative template for the pages - therefore I only have css and javascript (and maybe .htacess) at my disposal. I've looked around, and I think there may be a way to prevent images from loading u...

"Skip Navigation" link not working in Google Chrome

I follow this page to make a "Skip Navigation" link, however it is not working in Chrome (5.0.375.127). When I tab and enter the link, it scroll to the content, but when I continue to tab, it starts from the top but not start from the content. That page's skip "Skip Navigation" link is not working in Chrome either. Is it a bug of Chro...

background image need to fit the div

I have a div which size may differ time to time. At I set a background image to tat div which image size is fixed. But I need to fit the background image to div at any size. How could be possible thro' CSS. Thanks in advance!!! ...

How to store several HTML form fields in one mysql table field?

Hi, I want to store several fields from a html form in one table field. Here is the source code for the form. This is only part of the form, the form tags are there. Attached is a screenshort from this part of the form. <table border=0 cellpadding=0 cellspacing=0> <tr> <td><input class="field checkbox" type="checkbox" value...

User selects operator from drop-down menu and use it in PHP function

Hi guys, What I would like to achieve here is a user selects an operator, e.g. +, >, <, >= etc. and uses this in a Select statement in PHP. MY HTML code: <label for="grade">Grade: </label> <select name="operator" id="operator"> <option value="">Select one</option> ...

load HTML\PHP pages into another Page's div

lets say i have two pages links.html & contents.php... first page contains only html code while the second page contains some HTML + PHP code.... now i ant to create a page index.php with two DIVs in which i want to show\load the above two pages... <html> <body> <div id="links" class="myCustom1"> <!--here will be the links.html...

Change &nbsp; to save length without to collapse table cell

Hi there! I'm sending e-mails about weekly food orders. This is practically means 1, 2 or 3 tables. I'm trying to eliminate any unnecessary HTML from source to save bandwidth. Now there's one thing remained: &nbsp; It costs 6 bytes when the client hasn't ordered anything at a day. When i change the &nbsp; to a simple space it breaks my...

HTML - Recomnended href link sytanx

we can give the href like the following <a href="images\image.png"> <a href="images/image.png"> <a href=".\images\image.png"> <a href="./images/image.png"> which is the recommended method... which doesnot have problem on any browser and on any web server.... leave the image type... consider the link\paths and PLEASE explain why t...

How to add extra classes to Wordpress's body element?

In the default Wordpress template, there is this in header.php. <body <?php body_class(); ?>> This echos some useful hooks for CSS and JavaScript. Some example output is <body class="page page-id-45 page-template page-template-gallery-php"> Is it possible, within the header.php even, to add my own classes in addition to what is the...

Why is menu displaying behind image?

Hi At this site: http://www.multiway.dk/ The dropdown menu is displaying behind the header image, which i dont quite understand as the menu has z-index: 100; and the image has z-index:1; It works fine in FF, but in IE it doens't work?? ...

How to prevent the middle-button from opening a new tab in the browser?

I have a group of links on a page. when the user clicks a link it triggers an asynchronous request and a content area on the page is updated with the response html. This works fine, except for if the user clicks the link with the 'middle-button' (or mouse wheel, whatever it's called!). Then a new tab opens and the response gets returned...

how to have spacing html/css

hi i have an html/css code here, which will result to this one.see image below. I would like to add another 3 columns under the first "Future Event" How can I do that? already posted the code: thanks what would be the code for the spacing of paragraphs? thanks please see the image here: http://www.freeuploadimages.org/images/nc1xjrptgd...

Text Search - Highlighting the Search phrase.

What will be the best way to highligh the Searched pharase within a HTML Document. I have Complete HTML Document as a Large String in a Variable. And I want to Highlight the searched term excluding text with Tags. For example if the user searches for "img" the img tag should be ignored but phrase "img" within the text should be highlig...

What's a good way to attach a numeric value to an element?

I'd like to have some HTML like this: <div id="div0" someAttr="0" class="shown">Some stuff</div> <div id="div1" someAttr="1">Some stuff</div> <div id="div2" someAttr="2">Some stuff</div> <div id="div3" someAttr="3">Some stuff</div> And then manipulate it like this: $('div').click(function() { if($(this).someAttr > $('div.sho...

marquee not working in IE 6

marguee with direction="up" not working in IE 6 . Any one please help me. Or please give me another solution ...

Ordered list items are not correclty updating to the appropriate step number.

<ol type="1"> <div style="margin: 1em 0; margin-left: 45px;"> <li> <div style="margin-top: 5px;"> Div Both before and after Li..... voima </div> </li> </div> <div style="margin: 1em 0; margin-left: 45px;"> <li> <div style="margin-top: 5px;"> rohkeus </div> </li> </div> <div style="margin: 1em 0; margin-...

HTML - overRide statusbar link location display

when on Mouse Over state on a link the status bar shows the link's location in the status bar like in the following image... is there a way to change\override this to show some desired text... ...

jQuery Error: Invalid object initializer

Hi, I have the following code in my page: <div id="data_body_container" style="overflow: auto; width: 880px; height: 500px;"> ... </div> and then below in the site: <script type="text/javascript"> $(window).resize(function() { var windowWidth = $(window).width() - 50; var windowHeight...