I have a 50x50px div I want to display on my homepage as fast as possible.
Is it faster for me to do
<div style="height:50px;width:50px">
Or to assign it a class to avoid the inline style:
<div class="myDiv">
And put the myDiv class in a CSS file in the HEAD section of the HTML page?
My thought was that the first one should be f...
I am having trouble with the CSS when I load a page into div.
Firefox loads CSS perfectly, but in Chrome, it does not load the CSS styles of the loaded page.
It only works when I apply style with the element, for example
<table style="left:100px;top:50%;position:fixed">
Only this way does it work in Chrome.
But this doesn't work:
...
I have a lot of HTML pages that need the same few lines of text changed on them. To reduce the time it will take to manually open each one in Notepad and find the text and replace it with the new text, I would like to create a script to do this for me.
How can I open an HTML file, read the code the makes up the page and find & replace t...
I have a layout with a header, a navigation pane on the left, and a content pane on the right. The content pane is a pure white background, and I would like to apply an entirely different set of styles to it than the other two panes.
Is there a way to apply a style sheet to the div of the content pane, without having to resort to putti...
Here is my task first and foremost:
At the top of the page body, insert a div element with the id "header" containing the inline image "mlogo.jpg". The aternate text for the image should be "Mayer Photography". Insert an inline style that sets the border width of the image to 0 pixels.
So that's my task and here is what I have come up...
I'm creating a website for my schools "Math Relay" competition.
I have a "Container" div (with a white background), then a top-bar, left-bar, and right-bar div inside the container.
left-bar and right-bar are both floated inside "Container".
However, if you look in the image below you can see the right-bar has the grey background show...
hi I am currently working on improving the SEO on a website containing dropdown list menu. currently when you select options and then submit a javascript is redirecting you to the next page
I heard from some people that i could put the link i want indexed in the value of the dropdown list and that google crawler would trap it as a link ...
I've got some code that puts a line-through on a TR for deleted rows, but this means that my "Actions" column (that only has) buttons suffers. This is because there are individual spaces between the buttons, which wind up getting line-throughed as well.
After poking around on W3Schools, it boggles me why this example doesn't work:
<ht...
I have a varchar(255) field in mysql that is used for displaying the title to a page and I received a request to superscript some characters for a particular title. I updated this title with some html but this doesn't render as expected.
Instead of H2O I get:
H<sup>2</sup>O
Thanks!
...
Strangly enough, my website is rendering fine in Internet Explorer but fails in Mozilla based browsers.
Here is a screenshot:
Does anyone see why "right-panel" does not go all the way to the right? You can see how it is not lined up with the right edge of "top-panel":
#container
{
margin: 0 auto;
width: 750px;
background...
I want to display a Zend Form with one of the elements shown as disabled. I'm setting the value so the user can see it, but I want to disable it so the user can't edit it. This may also involve some sort of css/javascript to ensure that it looks like, and is not editable by the user. This is my element:
$this->addElement('text', 'us...
I want to have an HTML form embedded in another form like so:
<form id="form1">
<input name="val1"/>
<form id="form2">
<input name="val2"/>
<input type="button" name="Submit Form 2 ONLY">
</form>
<input type="button" name="Submit Form 1 data including form 2">
</form>
I need to submit the entirety of form1, but when I su...
Is there any way to submit a form when a user clicks on a checkbox? Think of a todo list.
When the user clicks on the checkbox, it updates the todo entry in the database saying its done.
Can this be done without using javascript?
...
Imagine if I have in a text something like [a href="this-is-a-very-big-link"]this is ok[/a] (switch < and > with [ and ])... And also this-is-a-very-big-word.
I need to cut the second case in two lines...
Notice wordwrap kills the link so it is not useful for solving this sort of problem.
Any idea?
...
Why isn't this XHTML valid?
The HTML:
<h2>earthquake warning <span>Posted 03/11/2009 at 2.05pm</span></h2>
The CSS:
h2 {
font: bold 20px Arial, "Helvetica Neue", Helvetica, Geneva, sans-serif;
padding-bottom: 5px;
padding-top: 5px;
text-transform: uppercase;
}
h2 span {
font-weight: normal;
text-transform: none;
display: inline;
}
...
There are many tools for converting latex into html. I'm looking for a Java or C++ program to do this. It will need to run on multiple operating systems. The solution will be used on academic papers, so it should ideally also be able to interpret things like bibtex.
I found htmltolatex which is a "Java program for converting HTML pag...
I'm trying a couple of different ways to show the "publish_stream" extended permissions dialog. Each time I see a blank dialog with title "Request for Special Permissions" show up for a brief few seconds then disappear. I'm doing some very straight-forward stuff:
<script>
Facebook.showPermissionDialog('publish_stream');
</script>
I al...
With javascript,is it possible?
EDIT
let me be more specific.
I mean:the exact number of rows in a textarea.
Here it's 10 rows in my post.
Anyone knows?
...
I have a PHP script that pulls some content off of a server, but the problem is that the line on which the content is changes every day, so I can't just pull a specific line. However, the content is contained within a div that has a unique id. Is it possible (and is it the best way) for regex to search for this unique id and then pass th...
I'm noticing most folks are talking about using DIVs and CSS for
label, textbox pairs. How would one convert a table such as:
<table>
<tr>
<td><some Label1> </td>
<td><some TextBox1> </td>
</tr>
<tr>
<td><some Label2> </td>
<td><some TextBox2> </td>
</tr>
...
</table>
From using a table into say a div with CSS, a sample would be help...