Hi all, just wondering if there is a better way to write this CSS? It repeats quite a lot, this is a simple example, does it have to be this way?
<style type="text/css">
div#leftBlock
{
position:absolute;
z-index: 1;
}
div#rightBlock
{
position:absolute;
z-index: 1;
}
di...
Hey guys,
if I had a HTML form like so...
<form>
First name: <input type="text" name="firstname" /><br />
Last name: <input type="text" name="lastname" />
</form>
How would I auto fill both First name and Last Name with a default value? e.g "joe".
Thanks.
...
Hi,
I have a simple <input type="submit" value="Search"> submit button.
In the CSS i have styled it with input[type="submit"] and input[type="submit"]:hover so it changes its background by default and when hovered. Is there a way to change its background when clicked?
...
Hi,
I am trying to link from one part of the page to another using a href links.
<div id="something">
<div class="toolbar">
<h1>Product information</h1>
<a class="button back" href="#">Back</a>
<a class="button slideup" href="#product">+</a>
</div>
<div>
<a href="#product" rel="external"><im...
Hi All,
W3c markup validation is asking me to remove trailing slashes on my page.
Is this correct?...and will my page still be compliant in all browsers?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="content-style-type" content="text/css" **/**>
Many tha...
I have a problem with jQuery and @font-face.
I need to work out the height of a <div>, which works fine, but then there is a small delay for the fonts to load and as soon as they do, the @font-face fonts were actually bigger than the fallback fonts, so the height is smaller than it should be.
I have tried using Modernizr, but that is n...
I am trying to reference the HTMLSelect object in VBA. Assuming I have a form on the html page and a select control named LB. I can't figure out why I get an error message using the code below.
Dim ieApp As InternetExplorer
Dim ieSelect As HTMLSelect
Dim iePage as HTMLDocument
Set ieApp = New InternetExplorer
ieApp.Visible = True
ieAp...
I have a horizontal CFMENU inside of a DIV, and in IE7/IE7/FF/Chrome, the menu is floated to the right, as specified in my CSS, but in IE6, the menu shifts to the left of the DIV that contains it, and it's width expands beyond the boundaries of the containing DIV. I've included all the applicable HTML and CSS below:
HTML:
<body>
<...
We have a iamge banner on our web page that is a gradient that is repeated on the x-axis. The problem is, if our content on our web page (which is dynamically created based on data in our database) spans a width greater than the window width, then our banner no longer spans the entire width of the document when scrolled. Anyone know how ...
hey all im new here and kind of new to php and i need to create my html tage in alph order by App_Last any help would be great thanks
$query1="SELECT App_Last, App_First
FROM applicant
WHERE (App_Last IS NOT NULL OR App_First IS NOT NULL) AND applicationID='".$r['0']."'
ORDER BY App_First"; echo $query1;
$result1 = mysql_db_...
I have a HTML table with following content.
<table class='main'>
<tr id='r1' class='tbl'>
<td>V1</td>
</tr>
<tr id='r2' class='tbl'>
<td>V2</td>
</tr>
<tr id='r3' class='tbl'>
<td>V3</td>
</tr>
<tr id='r4' class='tbl'>
<td>V4</td>
</tr>
<tr id='r5' class='tbl'>
<td>V5</td>
</tr>
</table>
I can select a row by using...
Hey guys,
I'm creating a website with ASP.net MVC 2.0 which uses two different languages (English and Persian). what I want to is I need two have different layouts for these languages, English has a left to right and Persian has a right to left layout.
What came to my mind was, if I could have two different css files like when you do i...
I generally HtmlEncode any user generated content that I render on my website, so ampersands etc. become & and so on, but was wondering, should this be done (from a standards point of view) to any dynamically generated meta descriptions, meta keywords etc throughout a site?
...
Hi,
I am trying to escape html characters of a string and use this string to build a DOM XML using parseXml method shown below. Next, I am trying to insert this DOM document into database. But, when I do that I am getting the following error:
org.xml.sax.SAXParseException: Reference is not allowed in prolog.
I have three questions:
1...
Hi guys
I am trying to setup a menu with sub menu that contains ul. My question is how to remove the sub ul menu background image that inherits from the menu ul. I appreciate any help. Thanks a lot!
my html
<ul id="menuBar">
<li id="test1">test1</li>
<li id="test2"><a href="#">Pro1</a>
<div class="subMenu">
<ul>
...
I want to create a static Facebook page, which should include some images and text. Are there any restrictions to what I can use? Ideally I'd simply thrown in my HTML markup, with images , styles and fonts hosted on another domain and be done with it.
...
Hey,
I was wondering, is there any easy way to have the html generated by codeigniter be more structured and more readable? For example, if I do this:
echo form_open('do/send',array("id" => "contact_form"));
echo form_label("Name:", "name");
echo form_input(array("name" => "name"));
echo form_submit("submit", "Submit");
echo form...
I have this code to copy an html file and rename it. However it doesn't do this, and I have tried tons of variations of the code but still nothing. I'm probably just overlooking something, or I forgot something.
$file = 'example.html';
$newfile = '$bla.html;
Any ideas on how to fix this? Or a different code? Thanks in advance!
...
Hi,
I was wondering if it was considered more professional to write a website in strict xhtml rather than transitional.
Is it something that should be done as you advance as a web developer, or is it irrelevant?
...
I like to display a div at width, say 900px initially and when the browser window shrinks below 900px, the div shrinks with it. I like to do this without using Javascript. I tried adding min-width:0px to the div but it didn't help.
...