I have a really simple set up
<div class="container">
<ul>
<li>Item one</li>
<li>Item two</li>
</ul>
</div>
I had assumed that all contents and the bullets of the ul would be within the div but currently this is not the case.
The bullet points for the UL appear outside of the div and effectively disappear when overflow is...
I have a general rule which gives all DIVs a background image.
I have one div (with id='a') which I don't want it to have the background image.
What css rule do I have to give it?
...
I have an iframe on a page and there's a link inside the iframe. When user clicks on the link I want it to open in the current page (but not in the iframe), I want the current page to reload with the target of the link in the iframe.
How can I do that? I hope there is some javascript or jquery solution because I need to achieve this in ...
Hi, I have such code:
<div id="footer">
<a href="http:/tra-ta-ta.com">
<div id="logo"></div>
</a>
</div>
#logo
{
position: relative;
width: 100px;
height: 18px;
float: right;
background-image: url('../images/logo_def.png');
background-repeat: no-repeat;
background-position: 50% 50%;
}
#logo a:h...
Hi
We use overflow property to specify whether scroll bars should be provided when content overflows element’s box.
Is there a similar property with which we could specify whether horizontal scroll bars should be provided when the width of an element is greater than the width of a viewport ( ie display area )?
thanx
...
I have a hyperlink which goes to a named link. <a href="#question">
I needed it also to execute a Javascript so I did:
`<a href="javascript:SomeFunction();#question">`
which didn't work. I guess I have to jump to the named link from Javascript. How do I go to named link from Javascript?
...
Hey everyone,
I've got a legacy app just starting to misbehave, for whatever reason I'm not sure. It generates a bunch of HTML that gets turned into PDF reports by ActivePDF.
The process works like this:
Pull an HTML template from a DB with tokens in it to be replaced (e.g. "~CompanyName~", "~CustomerName~", etc.)
Replace the tokens...
Possible Duplicates:
Non-Standard Attributes on HTML Tags. Good Thing? Bad Thing? Your Thoughts?
Is there a generic attribute for all HTML elements aside from ID and class?
I have a series of divs that I would like to attatch extra info to. My idea was to use non-standard attributes to hold these values. Is this a bad idea, ...
I have an unordered list set up for a hover/dropdown menu. I have the structure set up perfectly as far as the code. The ul and li structure is all set. I am wondering if anyone can tell me the css structure/style to get it to work...aka hover over the main button and have the other links drop down. I need to know how to do that as well ...
Hi,
Does anybody know how the username input field of Twitter works? In the registration form, if you type any UTF-8 character it will not be rendered. How is that done?
...
I have been struggling with this issue for a while. I have a problem with text inside a child div being cut off in IE7 or 8. Works fine in other browsers.
parent div - float left
child div - no height, text gets cut off
I have tried a few hacks and methods I found googling but nothing works, please help!
Thanks
...
Hello. I'm learning Javascript and CSS and have run into an issue where my CSS styles aren't being applied to markup that I'm dynamically generated from XML and writing to document after the page has loaded. I can only assume that the styles aren't being applied because I'm modifying the document after it's already been loaded. Is thi...
Is there a cross browser method of attaching some content in a <div> to the bottom? One difficulty is that the <div> may have an arbitrary height applied, but I want certain content to be stuck to the bottom of it at all times.
This would have been accomplished in the bad old days like this:
<table style="height: foo;">
<tr><td va...
Is it possible to create a sticky header or footer such that no matter where you scroll the header/footer stays put? I'm looking for a HTML/css/javascript solution for iPhone/webkit.
...
I am having trouble transforming particular characters from an XML feed into XHTML.
I am using the following example to demonstrate the problem.
Here is my XML file:
<?xml version="1.0" encoding="UTF-8"?>
<paragraph>some text including the –, ã and ’ characters</paragraph>
Here is the XSLT I am applying:
<?xml version="1.0" encodin...
I have a web page with a form. When the user submits the form, I want the server to make the browser redirect to a different page from the form action. Right now, I am doing this by using PHP's header function to send a 302 status code. It works fine.
I am trying to make the page on the server redirect the browser in the same way, regar...
Hello, can someone please tell me the value of an em to pixel?
10em = ?px ?
thanks
...
Hello
I have the following code to retrieve all hyper links in an HTML document
and my question is how to retrieve the text nodes inside every anchor tag
(even if the text node is a child of a child like if the anchor node has a span node which has a text node)?
<?PHP
$content = "
<html>
...
What's quicker: serving a static HTML file from the filesystem or from MemCache?
Also, is there scaling and/or other concerns I should be aware of?
...
I'm trying to make it so certain text and images on an HTML page cannot be highlighted with the cursor, so it appears as if they're a part of the background.
...