I'm working on a project that requires me to write some code to pull out some text from a html file in python.
<tr>
<td>Target binary file name:</td>
<td class="right">Doc1.docx</td>
</tr>
^Small portion of the html file that I'm interested in.
#! /usr/bin/python
import os
import re
if __name__ == '__main__':
f = open('./res...
Greetings,
I am making a site with :hover images as backgrounds of links. But oddly enough, only the first link is working at all. The others don't act like links, and don't react to the :hover event.
Here is the germane HTML:
<a href="/" id="home-link" class="icon">Home</a>
<a href="skills/" id="skills-link" class="icon">What I Can...
I have page with a bunch of links. The user is to click on the "Pick" link or the red X image. It works just fine.
However, sometimes, the "Pick" links and red X image move half-way down when active. This only happens when they are clicked on and active. In these images, I am clicking and holding on the links:
While just annoying ...
By default tab symbol in textarea equals to the width of 8 spaces. Is it possible to change this value to 4 for example?
I am mostly interested in using this in Chrome browser.
...
Possible Duplicates:
How to encrypt HTML, CSS and JavaScript to prevent theft
What are some good ways to prevent people from copying my source code?
Is there any good way to compile HTML? I'm working on a page that contains HTML code and some CSS and JavaScript. Is there anyway that I can compile it so that other people cant...
My google fu is not up to scratch this evening. What are the valid html elements, if any, that can be contained within a <a> tag?
<a> ?? </a>
...
This is in continuation to my previous question which was closed cause of similarity to some previous SO questions. Although the answers in all related questions made me to think this:
Should we use unordered lists to create forms? And although I got mixed comments.
A particular blog http://green-beast.com/blog/?p=259 said that using ...
This should be simple, but I can't figure it out
For example, lets assume the class .contentdiv is what were searching for.
I want to obtain (or select) the second or (x amount) .contentdiv in a document then get the html of that div.
x being the div i want to select so pretend x is 1,2 or 3 or any number
jQuery('#slider').filter('.c...
<embed src="gtr.mp3" autostart="true" loop="false"
width="300" height="42" controller="true" bgcolor="#FF9900" />
so this is the code for a mp3 player on ur web hmm well lol i knw that but i want to knw that how to change mp3 player wdh our own one i dnt want that wlm player i posses a template in which a vgood featured musicpl...
Hi folks!
Here is an example grid-view:
Also another example from TED.com
Any ideas on how I could go on about implementing a dynamic grid like this in CSS?
I guess it might have something to do with dividing the box in units styled with float:left, and each unit would have a border if on a boxes border.
Help would be very app...
Hello,
I am learning cakephp, and I was just doing a simple Todo list app from a book. The app basically takes in a task from an input field, then you click 'Add Task' and the task should be added to database and then the user gets redirected to Tasks View page where all the tasks can be seen including the one they just added. In the ad...
Im trying to devide a page in 2 parts but with 2 seperate css sheets but i dont want to use a frameset (horror), is there a possibility?
...
I built jssh for FF 4.0b1 and packaged as an xpi and installed it to my browser, when running javascript that checks tags for a certain phrase in the onclick or onfocus events I am getting an NS_ERROR that says component not available has anyone seen this happen as of yet? It only happens when the tag is either not the first one on the...
So, I want to have an image resized to 30% of its original height/width. Pretend you don't know its height or width, how would you go about it using only CSS/HTML?
...
Hello,
Users are complaining about my site, saying that they Sign In form is "not allowing the Firefox and Chrome browsers to "remember password". You should allow people to remember the password in their browser--it will come in handy in the future on future visits."
Any ideas why this would be the case?
...
Hi,
I'm writing a web page. How do I know what doc type to use?:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
or
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
I believe the rationale behind using Transitional is that if your page uses deprecated html elements, the ...
Hi,
I'm using a table element in my page layout (because I can't get divs to work 100% the way I want).
I just read this article about using a table style for divs:
http://www.digital-web.com/articles/everything_you_know_about_CSS_Is_wrong/
is this widely supported right now, is anyone using this method? If I look at major sites like...
Hello,
I am using contentEditable div tags on my website and I have noticed a weird issue when using Firefox.
Here is example source code:
<html>
<head>
</head>
<body>
<div contentEditable="true" style="margin-left:auto;
margin-right:auto; height:200px; width:200px; border-style:solid;
border-color:black...
I put together a simple system so that my dad can manage a website for his club volleyball team. He's not very familiar with html markups so I'm trying to keep this as simple as possible for him. Here is what I have him right now:
<div class="text_block">
<h2>section heading</h2>
<image src="" /> <- optional image
<p> </p...
Can anybody tell me why is this not working?
<input name ="txtChat" id ="txtChat" onkeydown ="isEnterPressed();" type="text" style="width:720px;"/>
This is my javascript function :-
function isEnterPressed(event){
alert(event);
}
On alert i always gets undefined :(
Thanks in advance :)
...