[I'm not sure if this question has been asked, though I've looked around a bit.]
I have a DIV inside a DIV. I would like the inner DIV to have a certain position inside the outer div. I'm having some success with this
position: absolute; top: 0px;right:0px;
but all other divs are getting moved around. I just want it to float on top of...
I would like to use jquery to remove some tags inside mainclass, so that this -
<div class='mainclass'>
<div class='inclass'>
<a href='#'>Some text</a>
</div>
</div>
Becomes this -
<div class='mainclass'>
Some text
</div>
Thanks in advance.
...
I want to apply a CSS class to every textbox in my site:
<div class="editor-label">
<label for="FoodType">FoodType</label>
</div>
<div class="editor-field">
<input id="HelpText" name="FoodType" type="text" value="" />
</div>
<p>
<input type="submit" value="Crea...
I'm using a file, page.php, as an HTML container for several content files; i.e., page.php defines most of the common structure of the page, and the content files just contain the text that's unique to every page. What I would like to do is include some PHP code with each content file that defines metadata for the page such as its title,...
Hello ! I have a jquery bug and I've been looking for hours now, I can't figure out what's wrong...
I have this code :
$(document).ready(function(){
$('#ulPhotos a').click(function() {
var newSrc= $(this).find('img').attr('src').split("/");
bigPictureName = 'big'+newSrc[2];
$('#pho').hide();
$('#imageBig').attr("...
Hello all,
Is it possible to avoid the spaces X & Y (see image)? There is no padding in CSS!
<html>
<head>
<title>Prova WIDGET</title>
<link rel="stylesheet" href="jquery-ui-1.8.1.custom/css/ui-lightness/jquery-ui-1.8.1.custom.css" type="text/css">
<script src="jquery-ui-1.8.1.custom/development-bundl...
I'm processing bad-formated HTML pages with JTidy. I am only interested in fixing a specific set of tags, for example <img> <table>. Is there anyway to tell JTidy to focus on only those tags?
...
Hello, I have some html-page. There is a javascript which generates some content. I have to parse this content from python-script. I have saved copy of file on the computer. Are there any ways to work with 'already generated' html? Like I can see in the browser after opening page-file. As I understand, I have to work with DOM (maybe, xml...
Hi.
I need to create a class Toolbar : Windows.Form.UserControl (Framework 2.0) and to place it into HTML page. This page must work in IE6+.
I found some examples and created my toolbar, but IE doesn't want to display it.
Site with examples:
http://feishunji.blog.51cto.com/237830/45990
Please, help to solve this problem.
...
It appears to me, from searching stackoverflow, that hand coding html/css is superior to using WYSIWYG editors. I'm a few weeks into learning html and css, and I've only hand-coded so far (though I do have the Adobe Suite).
My questions: is it ever worth learning how to use a WYSIWYG editor (like dreamweaver)? And, more importantly, whe...
Which do you recommend and why? (I would go textedit, but want to first learn and stick with coding for a while before I spend the money.)
...
So here is a little challenge. I have an image. It has 2 attributes:
a random ID - not helpful
an image url - but it is a button, and other buttons use the same image url, not helpful
a CSS class - also used by too many other things to be helpful
a style - neither helpful nor unique
This image is however inside of an anchor tag, but ...
Sending a DataTable's content in an html email, what is the preferred way to generate HTML from a DataTable?
...
The code validates. There should be two more images in the menu on the left, above the visible one of the silo. And each should be a link.
http://www.briligg.com/agnosticism.html
css is: external style sheet:
.menu {
position: relative;
float: left;
margin: 10px;
padding: 0;
width: 150px;
}
.menu li {
margin: 0;
padding: 0;
list-styl...
I have this code, that checks some ids and enable others, the javascript is pretty clear about what it does, but since it corresponds to some specific id ranges, I cant do just a look until it finishes, but I'm looking a way to do this dynamic and save 40 lines of code (or more), since its not the best way.
function loopGroup1() {
v...
I'm using an unordered list.
With an image to the left and text to the right.
I only noticed today that IE7 was displaying this so badly that it wasn't even acceptable. Woops for not realising sooner.
I have the given the image a class and the text wrapped in a seperate div.
<ul>
<li><a href="domain"><img src="http://www.domain.com/i...
Im trying to make this function to check an element and if its checked, or not, add or remove respective className. Also, if the element is disabled but is checked, it should un-check it and remove the className('yes')
function init() {
$(document.body).select('input').each(function(element) {
if (!element.checked) {
...
This is not a CSS problem. The HTML isn't there. I need the menu, with submenus to exist in HTML on EACH page. Right now, the submenu only exists in HTML for the submenu related to the page being currently viewed. Here's an example of what it SHOULD be like.
<ul id="menu">
<li>Page1
<ul class="sub">
<li>sub1.1</l...
How would I animate individual characters of text on a page in HTML5. Like this example in flash.
http://www.greensock.com/splittextfield/
...
A team that I am working on has gotten into the habit of using <script> tags in random places in the body of our HTML pages. For example:
<html>
<head></head>
<body>
<div id="some-div">
<script type="text/javascript">//some javascipt here</script>
</div>
</body>
</html>
I had not seen this befor...