I would like to be able to place an empty tag anywhere in my document as a marker that can be addressed by jQuery. However, it is important that the XHTML still validates.
To give you a bit of background as to what I'm doing: I've compared the current and previous versions of a particular document and I'm placing markers in the html whe...
How to set <textarea> height auto? <textarea> should take height according to content inside <textarea> on same page I have multiple <textarea> with different amount of content inside.
I'm just using <textarea> to show source code sample.
...
Hi , I have the code below which is just a link for the user to login, when pressed it shows a login box using jquery. It works fine in IE8 but when the compatibility mode is enabled the link doesnt work at all, it like it isn't even there.
<body>
<script type="text/javascript">
make_request();
var clicked = 0;
$(do...
Is there a good way to make an HTML dropdown read only. Using disabled attribute of select seems to work, but the value is not posted.
<select disabled="disabled">
I have a complex page with lots of javascript and ajax. Some actions in the form cause to drop down to be read only some actions let user decide the value.
Edit: Is there ...
Why border of tfoot tr:first-child not showing in IE. I'm checking in IE7.
font-weight:bold; background:yellow is showing in IE but border not
table {
border-collapse: collapse;
border-spacing: 0;
}
table tfoot tr:first-child {
font-weight:bold;
background:yellow;
border-top:2px solid red;
border-bottom:2px so...
How do you link (with <a>) so that the browser goes to certain subheading on the target page as opposed to the top?
...
Is there any information on how to correctly handle white spaces in XHTML (1.0 Transitional)? It seems as if XHTML does not use standard XML white space handling.
Edit: Mayby I was a bit unprecise about what I was exactly looking for. I'm more interested in how an element gets rendered than how it would be processed by an XML processor....
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?
...
What are cons if we use JavaScript to apply only CSS property/selectors to that browser who do not support that property by default? to keep my HTML semantic and keep free from Deprecated HTML.
Is it against content, style and Behavior separation?
If I make accessible site then should i only use whatever i can do with pure css. shouldn...
Why does IE 7 not handle, the css background property for anchors?
css:
.nav a
{
float: left;
display: block;
padding: 5px;
height: 25px;
line-height: 25px;
font-weight: bold;
}
.nav a:hover
{
background: #fff;
color: #000;
}
html:
<div class="nav">
<a href="#">anchor</a>
</div>
It has no backgr...
In my application i have lots of divs containing text. All divs have overflow set to hidden so that the user does not see the text if the container is not large enough to contain the writing.
If the user wants to see the hidden text they are supposed to mouse over the "box". The box then expands and shows the text. Sounds simple enough,...
i think my title says it all
...
Container/Wrapper Div does not contain all content (ie all the child Div's).I've tried overflow: hidden but still doesn't work. Can someone please tell me why this is happening and what are the possible solutions.
Thank you in advance ;-)
for some reason the whole code does not display??
<html>
<head>
<style type="text/css">
#wrapp...
How to add "Back to top" link at bottom at is browser window is shorter than page, using jquery?
<div id="mainContent">
<p>Some content</p>
</div>
If some content is bigger than browser window ( I mean if vertical bar comes on the page)
then i want to add Back to top just before closing the div.
<div id="mainContent">
<p>Some ...
I have a small space in which I would like to put writing. Problem is, if a long word is inputted, it flows off the side because there is no space.
I could do overflow:hidden, but this isn't what I am looking for. Ideally I would like the word to drop to a new line with a '-' before it.
The word is on a line of its own to begin with so...
I'm new to both JSF and Spring Framework and I'm trying to figure out how to make them work together.
My current problem is that application outputs my JSF files without interpreting them.
Here are some snippets of my code which I believe might be relevant:
dispatcher-servlet.xml
<bean id="urlMapping" class="org.springframework.web.se...
Hi Everyone, when my site loads, it stops half way because of specific php code. When I try commenting out the php code, the whole page loads properly (input boxes, buttons etc.)
This is the code that causes the issue
<?php
//if the add location button is clicked, the add location, the whole form will not be submitted
...
I need to decorate a standard html button. The base element I took <button> instead of <input>, cos I decided that the element must be a parent container. And there is child element <div> in it. This <div> element will be been the core element for decoration, and should occupy the entire space of the parent element - button.
<button>
<d...
A quick question involving PHP development, I seem to be wondering about this more and more as I develop more complex sites. Basically say we have a basic PHP / XHTML inbox (messaging system). I perform checks at the top (check if user is logged in, check if user has correct permissions etc). Then use the 'header('location:www.abc.com)' ...
I need to centre align a horizontal menu.
I've tried various solutions, including the mix of inline-block / block / center-align etc., but not being successful.
Can someone help me please? :)
Here is my code:
<div class="topmenu-design">
<!-- Top menu content: START -->
<ul id="topmenu firstlevel"> ...