Questions tagged [html]
HTML (HyperText Markup Language) is the markup language for creating web pages and other information to be displayed in a web browser. Questions regarding HTML should include a minimal reproducible example and some idea of what you're trying to achieve. This tag is rarely used alone and is often paired with CSS and JavaScript.
1,189,499
questions
0
votes
6
answers
771
views
Trying to Add Radio Inputs (+Labels) To An Example Form
<style type="text/css">
body {
font-family:Helvetica, sans-serif;
font-size:12px;
}
p,
h1,
form,
button {
border: 0;
margin: 0;
padding: 0;
}
.spacer {
clear: both;
height: ...
0
votes
4
answers
453
views
Editing escaped code (for display)
If I escape some code because I want it to display as the actual code in html (eg for an example code snippet), save it to the database and then pull it back to the editor (an html page), it is ...
2
votes
4
answers
1k
views
CSS Menu (Can't get the tabs to full height)
<style type="text/css">
html, body {
background: #fff;
margin: 0;
padding: 0;
}
#nav {
font-family: Verdana, sans-serif;
height: 29px;
font-size: 12px;
padding: 0 0 ...
11
votes
4
answers
36k
views
How can I manipulate the DOM from a string of HTML in C#? [closed]
For the moment the best way that I have found to be able to manipulate DOM from a string that contain HTML is:
WebBrowser webControl = new WebBrowser();
webControl.DocumentText = html;
HtmlDocument ...
0
votes
2
answers
6k
views
POST Login with ActionScript 2.0
I have created a pretty basic Flash website for a client and am having an issue programming a Client Login feature that he would like. Currently, if I navigate to the site and click Client Login, it ...
1
vote
4
answers
1k
views
What's the best way to include html through an ajax echo command?
I am currently building a small website where the content of the main div is being filled through an Ajax call. I basically have a php script that returns the content like this:
(simplified php ...
3
votes
4
answers
15k
views
How do I include a php variable within the value element of an html input tag?
I am trying to include a value from a database table within the value element of an input field.
This is what I have, but it is not working:
?><input type="text" size="10" value="<?= date("Y-...
3
votes
13
answers
5k
views
What is a good non-WYSIWYG editor for HTML?
I don't like WYIWYG editors, I want to be responsible for the selection and placement of each tag and attribute! Is there a good editor out there that allows you complete control over the HTML but ...
1
vote
4
answers
5k
views
Cancel a webform submit with PHP
I'm using a small site to experiment with the uploading of pictures and displaying them.
When someone clicks "add a picture", they get taken to a page with a form on it. They can select a file and ...
4
votes
3
answers
19k
views
How to add scrollbars to my HTML that disappear if the content is smaller than the limit
I'm trying to create a form that has an expandable widget. The problem is that when the widget is open, The form extends outside the limit in the content box, and it looks bad.
I tried using overflow:...
2
votes
5
answers
3k
views
CSS Buttons (w/ Background but need bevel)
<input type="submit"/>
<style>
input {
background: url(tick.png) bottom left no-repeat;
padding-left: 18px;
}
</style>
But the bevel goes away, how can I add an icon to submit ...
1
vote
3
answers
2k
views
Centre Text Relative to Available Space in CSS
<div style="width: 300px">
<div id="one" style="float: left">saved</div><input type="submit" id="two" style="float: right" value="Submit" />
</div>
I would like div#one ...
1
vote
3
answers
1k
views
CSS "valign" Positioning
<div>
<h1>Title</h1>
<table>
...
</table>
</div>
Now, the
<h1>
has a margin: 0;
so it is at the top of the div. The height of the div is 300px.
However I'...
34
votes
5
answers
37k
views
Class methods as event handlers in JavaScript?
Is there a best-practice or common way in JavaScript to have class members as event handlers?
Consider the following simple example:
<head>
<script language="javascript" type="text/...
3
votes
1
answer
682
views
Can you propose a more elegant way to 'tokenize' c# code for html formatting?
(This question about refactoring F# code got me one down vote, but also some interesting and useful answers. And 62 F# questions out of the 32,000+ on SO seems pitiful, so I'm going to take the risk ...