I am trying to center a paragraph tag with some text in it within a div, but I can't seem to center it using margin: 0 auto without having to specify a fixed width for the paragraph. I don't want to specify a fixed width, because I will have dynamic text coming into the paragraph tag and it will always be a different width based on how m...
Referring to http://stackoverflow.com/questions/702925/creating-dynamic-radio-button-w-jquery , I was thinking how can this be handled if the input value('red' or 'blue') is retrieved from the database on a page load.
Taking the same example from the above link, if Red, blue or other dynamic values, how can we build radio buttons on the...
Here is my html source code:
<ul id="accordion">
<li><h3><a id="1"></a></h3></li>
<li><h3><a id="2"></a></h3></li>
<li><h3><a id="3"></a></h3></li>
</ul>
and javascript
<script type="text/javascript">
$(document).ready(function(){
$('#accordion li h3').click(function(){
//I want to alert the id attribute of a, but i don't kn...
Further to my last question, I'd like to know if current browsers can read attribute values without any quotes, even if the value contains slashes, like:
<script src=/path/to/script.js type=text/javascript></script>
Will it work without causing a DOM parsing error and corrupting the entire document?
...
When I use this in my css to achieve square bullets:
li { list-style-type: square; }
it affects all numbered lists as well, as they both use <li>
The context is within a sharepoint richhtmlfield control.
Is there a way around this or have Microsoft not implemented numbered lists correctly?
...
Let's say I have this code
<form action="#" method="get">
<p>
<label for="name">Name:</label>
<input type="text" name="name" />
</p>
<p>
<input type="submit" />
</p>
</form>
Is it semanticaly fine to group elements with p? Because my teacher (again.. I know ..:P) told me that p should be used on...
Well i have a transparent div or the background is set to transparent :)
css:
#lowerLayer
{
position: fixed;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
width: 100%;
height: 100%;
background-color: Transparent;
cursor: help;
z-index: 1;
}
The div is placed right under the tag.. and under ther...
Let's say I have cleaner like this
.cleaner:after {
content: '.';
display: block;
clear: both;
visibility: hidden;
height: 0;
}
so I can add class cleaner to everything I want to clear floats. This is imho much better way than adding
<div style="clear:both;"></div>
instead, because it doesn't re...
Hi,
I have a container DIV which contains several block-DIVS. Every block-DIV contains SPAN items with values. The blocks have the same WIDTH as the container and are floating in the container, so it looks as if they are 'rows'. The SPAN items are floating inside the block-DIV.
Every block has a fixed height of 25px. I want to increase...
Hello, I'm using php to pass a login form when required, and here is the code:
$htmlForm = '<form id="frmlogin">'.
'<label>';
switch(LOGIN_METHOD)
{
case 'both':
$htmlForm .= $ACL_LANG['USERNAME'].'/'.$ACL_LANG['EMAIL'];
break;
case 'email':
$htmlForm .= $ACL_LANG['EMAIL'];
break;
default:
$ht...
Hi
I am trying to build a page with the following in it:
Already have the following:
one div for page to center the whole page with width 809px
inside <div class="page"> is the following:
<div class="header">
<div class="container"> (container for content stuff)
<div class="footer">
What I am struggling with:
<div class="contai...
Let's see:
<div><p>this div contains a p tag</p></div>
<div>this one is not</div>
How do i assign a variable with a boolean value (true or false) if a div contains a specific tag like p in the above example?
...
I'm facing a problem while working with iFrames. What I need to do is, get the contents of a division 'contents' , display it in an iframe, and then remove all forms/form elements ONLY in that iframe. When i use $("#form").remove(), it removes the form both in iframe and in the window. Can someone help?
Thank You.
...
Hi,
I have a Hindi magazine website hosted on Joomla. Though helpful from publishing point of view the site was a maintenance nightmare. Joomla is so much susceptible to hacker attacks. My host will often shut down my site due to bots attacking my website. Recently I relaunched the site as a new Wordpress based site on a different name....
Can you see anything wrong with this code, or can it be optimised?
Code from index.php, to include the file
if(empty($_GET['t'])) {
$folder = "apps/";
}else {
$folder = str_replace("/", "", $_GET['t']) . "/";
}
if(empty($_GET['app'])) {
include('apps/home.php');
} else {
if(file_exists($folder.$app.".php")) {...
HTML:
<div id="lowerLayer">
<div id="positionLayer">
<div id="imageLayer">
<div id="imageHolder" style="background-image: url('/Images/Loading/ajax-loader.gif');">
</div>
</div>
</div>
</div>
CSS:
#lowerLayer
{
position: fixed;
top: 0px;
left: 0px;
right: 0px;
botto...
Our website is an AJAX website that makes no page requests after the initial start up of our website. Information is communicated with the server through XMLHttpRequests.
Our website allows users to work online and offline without a connection during a user session. When a connection is detected our website "synchronizes" with the s...
I'm refatoring some html in a JSP and I've noticed that the code has multiple onmouseup attributes for a button.
Is this valid html, it seems to work, but is it valid?
...
Hi there,
Anyone have any experience with jquery vAligh plugins or similar?
I tried to align for the following but it fails.. I was using a simple valign plugin (I will put the plugin at the end, its a jquery extension), if anyone can help it would be really helpful...
var overlayLayer = $("<div id='office-location'></div>").addClass...
I've been working on a project where we are using the Telerik RadEditor control (version 2009.1.402.35). For the most part everything seems to work fine with it (i.e., bold, italics, color etc). What is an issue though is that the indent and list (bulleted and numbered) functions do not properly render on the screen while the user is edi...