html

CSS: How to define a centered div with endless vertical borders and an initial height of 100%?

Hi there! First question on SOF, please be gentle if this may be a stupid question. :) Havent found a solution, neither here nor on the web. I got some trouble with CSS. I pasted my code at the end of this post but first Ill explain what Im trying to accomplish: I want to build a centered fixed-width content area with endless vertical...

Child DIV change height to match other child DIV

Hi, I have scoured the internet looking for a solution to this and I am sure it is right under my nose. Will someone please help? I have a parent div with two children. Each child has static widths and I need each one to change their height to match the other according to the content. In other words, If "child-div-a" is taller than "c...

php formatted html shows up in Yahoo mail but not gmail

I am using MAMP (LAMP stack development environment) to send emails using PHP. The code is below: $out_message = ' <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>You have requested an appointment with the Smile Zone</title> </head> <body> <p style="font-family:Arial, Helvetica, sans-serif;">...

populating an html select list from a php array

I am trying to populate an html select list using an array of customer names, I am using the following code but it does not seem to work. I have a function that query's a mssql db and gets the names. I know that works fine as I am using it in other code, for some reason when i try to populate the select list it is coming up blank. Would ...

@media syntax / possible combinations

I've seen some of these...: @media print { ... } @media screen, handheld, print, projection { ... } @media all { ... } @media all and (property:value) { ... } @media screen and (property:value) { ... } @media only screen and (property:value) { ... } @media screen and (property:value) and (property:value) { ... } @media screen and (prope...

JSF Navigation Question

Hi all, Can someone explain more about JSF page navigation to me? Basically, I understand that the action returns a string, that is mapped to a URL in a navigation rule. However, it seems like there is more to it, that I don't understand. My main problem is really that when I navigate away from a modal popup, using an action, it op...

relative positioned elements don't hide with jQuery hide() in IE 7

I am trying to show and hide elements on my page with jQuery's hide() method, and it works perfectly in all browsers besides IE 7. These elements are hidden when the page loads in the jQuery(function($){} method, and then can be later shown or hidden by the user. In Internet Explorer, not all elements are hidden. Some (so far, only bu...

Prevent website url in print from javascript

Hello (Prevent website url in print from javascript?) I am sure some simple solution exists. I have a webapp, and I use a specific css for printing this form, which is working great. However on each paper it always prints the "URL" for the webapp, which I do not want. I am not sure but I suppose it's the browser that automatically inclu...

De-select all html select options in a control that does not allow multiple selection

I have a web page with several HTML Select controls that all allow multiple selection. Next to each control we have a "Clear" button that de-selects all selected items in the control, with the onclick that looks something like this: <input type=button value="Clear" size=5 onclick="selectOptions('n.MyControl', false)"> The called Java...

How do I use a sprite to the right of text with an unknown width?

Given the following example: http://cl.ly/2UAa How do I use a sprite on the right side of the "see more..." line so that it always adjusts with the width of the text? Should I create a separate element that will float with the text, or is there a way to do it directly within the link. ...

HTML to CSS Menu style conversion required

I am not good with CSS... TAKE A LOOK AT THIS jsFiddle i am trying to convert this into a CSS Horizontal Menu... like THIS CSS VERTICAL MENU but i am failing... please F1! F1! F1! ...

Android 2.1 WebView and keyboard input

When Android 2.1 focuses on a text field in a WebView while in Landscape, it does this below. It takes the entire field input area and fills the tiny strip of available screen. The problem here is that when you hit that "Next" button, you have enough idea what field you are in. Is there a way to improve this with some sort of prompt s...

Remove controls from embedded video

Hi, I am looking to have flv videos displayed on my site, without any controls, and playing in a loop. So far I've succeeded with JWPlayer, however I do not wish to pay for a license, nor do I want to have their watermark on my videos. (They are meant to be seen as banner-type videos, hence my need to remove the controls) I've also bee...

jquery form submission

I am using jQuery+JSON combination something like this: test.php: <script type="text/javascript" src="coupon.js"></script> <form action='_test.php' method='post' class='ajaxform'> <input type='text' name='txt' value='Test Text'> <input type='submit' value='submit'> </form> <div id='testDiv'></div> _test.php: <?php // Code ...

Issue with jQuery keydown

Hi folks, I am facing an issue with this simple jQuery code. I have attached the HTML structure as well, The code is setting focus to the input field fine if I make a click anywhere on the div with id "scroll-pane", but if I click anywhere else in the screen, for example, code above the div id "scroll-pane", it doesnt bring the focus...

A scrollable area with the overflow hidden but no scroll bar

Is there a way of having an overflowing div that hides the overflow, doesn't have a scroll bar but is still scrollable (by means of the mouse wheel / touch input)? e.g. <!DOCTYPE html> <div id="longtext" style="width:100px; height:100px;"> Lorem ipsum.... </div> My CSS attempts have failed as overflow: hidden; s...

PHP Upload Form, "Notice: Undefined index: upload"

hi everone. I searched around google and stackoverflow, but didnt quite find the right answer. im using a form. Within this form i have a simple uploader <form method="post" action="uploadImage.php" enctype="multipart/form-data"> <input name="upload" id="upload" type="file" /> <input name="add" type="submit" id="add" value="add">...

General tips for semantically cleaning up HTML, CSS & JS?

As I've gotten deeper into using jQuery with various sites I've worked on, I've found that I can get lost on whether a class attribute value is appended to an element in the DOM in order to attach an actual CSS style, or to bind an event to it. As such, I've started leaning towards using the rel attribute on anchor tags to denote if som...

use data echoed by php

Hello! I have created a file-upload form and I want to output "filetransfer succeded" in a when the file transfer is done. This is easilly done on a normal form using Jquery and Ajax but since this is a file upload it is not possible to use ajax. So how do I upload a file and give feedback back to the user? without creating a new webp...

How do I make a j-query photo gallery slider play nice with duplicate slider?

Hello, First off, I am very new to j-query. That being said, I have a very simple j-query photo gallery slider that holds images and fades into new ones every few seconds. I have a page where I duplicated it, and gave it different css and class/id names in the js to make a different one. I want both on the same page. Now that I have the ...