Tagged Questions
0
votes
4answers
35 views
Form cleanliness, use divs or elements with display:block?
Having the following example http://jsfiddle.net/Pg8UY/, whats more correct? Divs for line breaks or using display:block so the form uses less elements to display the desired style?
<div ...
1
vote
1answer
22 views
Is it acceptable for a submit button to have a name attribute?
Usually, a submit button works fine without a name attribute. However, there are occasions where there's a need to have two submit buttons for the same form, hence making use of the name attribute to ...
-1
votes
1answer
18 views
Valid HTML-Cache-Header [closed]
whats a valid html cache-control header?
This:
Cache-Control:public, max-age=600
or this:
Cache-Control:max-age=600, public
Thank you for helping me.
1
vote
1answer
71 views
Is it absolutely necessary to use tables for HTML emails? [closed]
I have to design some HTML emails for my work. It seem obvious that everybody use tables and inline CSS for this. I would use plain text if I would have the choice, but it's not possible in this case.
...
0
votes
1answer
23 views
issue with styling over a slide show
Hey guys so I am styling up a content body over a jquery slider I built.....my issue is I need some pictures to have a float: left so they line up with each other but the parent has a margin: -6em 0 0 ...
-1
votes
1answer
33 views
How can I get the full execution time of a testcase?
From start to the end of a testcase in Selenium IDE - HTML.
What command/target to do is useful?
Please give an example?
0
votes
2answers
109 views
Should HTML Code Be All In Lower-Case [closed]
EDIT:
The answers are:
zackzurn's answer.
jrummell's comment under this question.
Visual Studio 2010 shows warnings when I use capital letters for HTML attributes. For example, this will cause ...
0
votes
3answers
43 views
DOCTYPE necessary for HTML includes?
I'm working on a new web application that has a common footer included on all pages. What I'm wondering is if it is necessary or if there is any benefit at all to having the footer file include HTML, ...
0
votes
2answers
32 views
Issue with positioning an absolute div
Hey guys I am having trouble styling my navigation so that is will always be at the same position on a page no matter the browser....
I have the following:
#Mainmenu {
width: 44%;
...
1
vote
2answers
33 views
Styles often occur in the same combination: Creating a single class or combining elements?
In one of my recent projects, I noticed that certain styles occur in the same combination repeatedly. According to the DRY principle, I should combine these styles. Regarding a good CSS style, what ...
-4
votes
2answers
72 views
How to hook a CSS class or ID to a element in PHP [closed]
I am trying to hook a CSS class to a element in PHP.
The issue that I am trying to fix is on the calendar page (can be found here) caption tag containing the month of the year i.e. January which is ...
0
votes
2answers
29 views
HTML Code Width
Is there a convention for the width of code in HTML? Some of my lines is getting really
long (due to attributes) and it's very hard to look at everything.
Thanks.
4
votes
1answer
56 views
What differs between console.log and console.dir? [duplicate]
Possible Duplicate:
What’s the difference between console.dir and console.log?
I have recently learnt the existence of console.dir().
After looking through MDN, I did not clearly ...
0
votes
5answers
81 views
php / html coding style [closed]
Variant 1:
<?php
for ($i = 0; $i<10; $i++) {
?>
<p>some text</p>
<?php
}
?>
Variant 2:
<?php
for ($i = 0; $i < 10; $i++) {
echo '<p>some ...
5
votes
6answers
115 views
Is it wrong to use CSS in this way?
Lately I'm using a CSS structure that makes HTML much cleaner but I don't know if there's something wrong with this.
Instead of using:
.top { //properties }
.top-wrapper { //properties }
.top-logo ...