html

Directory of "index.html" on site

I wonder if the index.html MUST be in the "www" folder on the server after uploading the site? This because I have actually made everything in a folder called "SV", so my site is located in : "www/SV/index.html" My Q is, on the server, could I just create a folder named "SV" under "www" and expect index.html to be automatically display...

Floating div element

I'd like to create a div element that is "floating", not in the sense of the float property, but rather literally "float": ...

change document root

I have apache2 and need to change the document root folder from: /var/www/ to /var/www/SV/ Now, I have checked the httpd.conf file, but it is empty, so I read someplace that all info is nowdays placed into apache.conf. However, I cant find any "DocumentRoot" line in that file. Should I add that line? Thanks ...

how can i embed php chart graphs into html

i'm using PHP Graph Lib PHPGraphLib i created some graphs , and all i need is to embed these graphs into html,, you know, inside and so on,, every time i put the code within html it gives me errors The image “http://localhost/chart2.php” cannot be displayed, because it contains errors. although without the html code , it works f...

What HTML template language uses <$ command $> and <$= value_to_insert $> ?

I'm trying to determine what the original language is of a place that includes snippets like: <div class="responselist"> <$ for ( var i = 0; i < responses.length; i++) { $> <div class="response"> <div class="response-body" id="response-<$=responses[i].ResponseID $>"><$= responses[i].Body $></div> </div> ...

Plain Text in Vertical Alignment in HTML

How to set any plain text in Vertical Alignment in HTML? ...

How to execute rrdcgi script from command line?

I have some rrdcgi scripts with HTML code which are used to show graphs on my webpage. When I try to run this script from webpage its fine and showing all details perfectly but when i execute this script from command line it shows below error and never returned to command line. (offline mode: enter name=value pairs on standard input) ...

write border in shorthand !

i am using border on object. like .box{ border-left:solid 1px #000; border-right:solid 1px #000; border-bottom:solid 1px #000; width:50px; height:50px; } may i write this in shorthand? ...

How can I observe the style on an element during mouse-over?

We supply micro-site content to a client. They supply us with a HTML wrapper and we inject our content into it. I'm trying to debug an issue where our style sheet appears to be interfering with the style in their wrapper. Normally I'd use firebug or IE Developer Toolbar to select the element and I can see which styles are being applied...

Regular expressions - finding and comparing the first instance of a word

Hi there, I am currently trying to write a regular expression to pull links out of a page I have. The problem is the links need to be pulled out only if the links have 'stock' for example. This is an outline of what I have code wise: <td class="prd-details"> <a href="somepage"> ... <span class="collect unavailable"> ... </t...

Why is my CSS overriding the CSS in the Wrapper?

I'm trying to figure out why the text in the left navigation panel on the following page is shrinking & underlining when you mouseover in Firefox. http://fundcentre.newireland.ie/ Everything on the left & top is part of a wrapper that we inject our content into. Our content is everything from "FUND CENTRE" down. Can someone suggest s...

how can i access a folder or file in parent folder php

i want a shared folder which contains images to be accessed by html pages inside sub folders.(child folders) ...

web: How can I place an input box in a picture?

I want to use a picture as my website design. It's a plain one, like google's. <img src... done... > now, I want to place an input box at the text area of the picture, how to I do that? ...

thoughts on making a widget?

I'm only going to be able to get each site that wants my widget, to copy and paste the code block in once.. So it needs to be really future proof. I've thought about this for a while and this is the widget code i've come up with : <script type="text/javascript" src="http://www.mydomain.com/my-future-proof-widget.js"&gt;&lt;/script&gt;...

Using Selenium, how can I test a web UI that returns XML instead of HTML?

I'm using Selenium to unit test my Perl cgi script and all works fine except in one special test case where my cgi script returns XML content to the web browser instead of returning HTML content. I'm new to Selenium and only pasted in their sample script to get started, but I can't seem to find a Selenium command in any of the documen...

Dynamic Width Divs with gradient background - IE8 & IE7

Hi All, I'm trying to create the following. The problem is that the stuff in row1 has a different gradient background than the stuff in row2. Also row1 is dynamically filled with stuff from the database, so it could have 2 items or 6. So I want the gradient from row2 to keep repeating it's to match the width from it's sibling. I c...

Has anyone come across a good article or resource investigating dropdown/flyout site navigation and its use on touchseen devices (iPad/iPhone)?

The question sums it up. ...

How to get 2 CSS files to work together? - Problem with !important overriding rules

I have a problem where our CSS file is not playing nice with the CSS in a wrapper we're injecting our content into. I have some rules specified in our CSS file with !important declarations because the wrapper's CSS is causing the browser to ignore my rules. Unfortunately, this is overriding the styles in the wrapper and I don't want it t...

get the array with html array path

hey, i have this path name from an input element interesse[angebote][flurfuerderfahrzeuge] as a string in my php var. now i need convert it somehow (with regex or explode()) so it looks like this: $_POST['interesse']['angebote']['flurfuerderfahrzeuge'] and the use eval() to get the value. But I'm sure there must be a much easier way do t...

How to write this loop prettier?

I've just read this topic http://stackoverflow.com/questions/2930533/highlight-search-keywords-on-hover and actually I use pretty the same structure, but it looks awful. So can you give me an advice, how to write this loop prettier in one php file, I mean php and html at the same time? <table class="result"> <?php while ($row= mysq...