Is three a way to create a list-style in html with a dash (i.e. - or – or —) i.e.
<ul>
<li>abc</li>
</ul>
Outputting:
- abc
It's occurred to me to do this with something like li:before { content: "-" };, though I don't know the cons of that option (and would be much obliged for feedback).
More generically, I wouldn't...
Hi,
I've made a twitter-like web app. Users can follow one another when viewing eachother's pages. Here's a high-level description of what's happening:
UserA views their own page at www.mysite.com/UserA, which renders a list of users they're following.
UserA navigates to UserB's page at www.mysite.com/UserB.
UserA follows UserB (via a...
I am reformatting an HTML document using the Agility Pack, and I've run into a limitation of my understanding of XPath.
In the document I'm working with, the following is a common construct:
1282
Which is built like this:
128<img src="" style="display: none;" alt="^(" /><sup>2</sup><img src="" style="display: none;" alt=")" />
...
Hi, I'm having a problem with IE6 in my layout.
Here's the sample.
<div style="overflow:hidden;">
<table style="table-layout: fixed;" width="100%" border="0" cellpadding="4" cellspacing="0">
<colgroup>
<col width="30px" />
<col width="100px" />
...
I have a form with two submit buttons - one for Cancel and the other is for Saving form values to the DB . When Enter key is pressed, the Cancel button submits the form instead of the Save button submitting the form. How can I make the Save button submit the form when Enter key is pressed?
Thanks,
...
Hello!
Is there a way (using javascript/jQuery) to do following:
On my page, I have one input type=text. This input has a background-image on its right side.
<input id="my-input" type="text" value="foobar" style="background-image:url(path/to/my/image.gif); background-position:right center; background-repeat:no-repeat; height:17px; widt...
This has always bugged the hell out of me. Why are lists like this? If you set margin and padding to 0, you would expect it to align normally at the left where the text around it would be, but no. That's where the text within the list item tags begins, then it renders the bullets and/or numbers to the left of that, overlapping borders et...
Here is my HTML:
<p>
Ut molestie venenatis enim mattis cursus. Duis lacinia mauris nec nulla rutrum condimentum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin et felis mi. Ut posuere, eros in vulputate auctor, ante dui egestas metus, in pulvinar dolor mauris eget enim. Fusce in n...
A simple (one might think!) question to all CSS gurus: I would like to shrink a DIV snugly around an IMG. The IMG is 600 x 800 and I needed it much smaller. So I go {height: 100%; width: auto;} and constrain the height via a wrapper DIV. However, to maintain the (unknown to me) AR, I cannot fix the width on the DIV. I tried to set t...
table row background color supports in IE but not in safari
...
Hi friends,
I am working on mail like app. I want to have view message that has html format(contains text and data) In my db it has in html format. how can i load it in iphone sdk . when i click reply the html message has to converted to text format is it possible?
Regards,
sathish
...
I'm working on a tricky design with several layers, and it requires me to layer a div between two other overlapping divs in a separate container. Here's my simplified example which works in Firefox, but not IE6 (which is of course the client's browser of choice): http://dawnup.com/sandwich
Source:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHT...
Hi All,
I m getting a problem while embedding a font in my web site i m using a css3 rule of font selector code is
@font-face {
font-family:'VoltaEFTU-Regular';
src: url(/fonts/VoltaEFTU-Regular.ttf) format("truetype");
}
.sample { font-family: 'VoltaEFTU-Regular'; font-size: 10em; }
I put my volta font in truetype forma...
I have a large set (over 300) of C# ASP.NET pages *.aspx and controls *.ascx, which are littered with inline CSS styles. My task is to extract those style into a CSS file.
So I'm looking for a tool to simplify the task of manually extracting this inline styles and replacing them with class="" statements.
Now I know this is not the idea...
I want to open new url as a popup window on form submission. Can you please help me .
...
I have the same flash file uploaded to two servers. It seems to work perfectly fine on one (IE, Firefox and Chrome) but on the other it works only on Firefox, not even chrome.
The thing is I guess the flash file does load, but until I right click and click play, the file does not start playing.
Could this have anything to do with the s...
According to http://www.w3.org/TR/html401/interact/forms.html#h-17.4, an input element should end with a single > and not a />. Though that most browsers can handle an input element that ends with />, is such an input element valid according to HTML syntax rules? In other words are elements like <input ... /> and <br /> valid in HTML 4?
...
Hi Guys,
I was just wondering, what PHP methods would I use to get the most recent tweet of a twitter user to display in a box on my website?
any suggestions on how i may achieve this would be great.
cheers
...
I am using some third party control in my aspx form. The control renders into the following HTML code:
<input type="text" style="height: 20px; text-align: right;" class="edit" id="numberBox" />
Now at the time i presses any key in this input text field, event fires but those events are not registered here with element perhaps the even...
Hi All I am having this problem. Locally everything is working fine. Once I upload the published version on production the IDs of all elements will have a different prefix.
I know that the prefix is caused by using master pages, but why it is different from local to production?
See Image
...