using Firefox I have found the following.
1. Save the following code in 2 files and name 1 box.htm and the other box.cfm
2. double click box.htm in explorer (opens with firefox)
3. run localhost/box.cfm in firefox
4. Compare the layouts, they are different!
If you compare the 2 layouts, the...
Well this is strange. It appears that in Firefox, these 2 code snippets are rendered with a different viewport size
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<div...
I don't think I am seeing this ( using Firefox ) When I view the rendering of this code and the rendering at http://960.gs/demo.html the viewport sizes are definitly different ( I can tell becasue the horizontal scrollbar is differently scaled for each page)
I am trying to emulate the 960px screen width as exemplified at http://960.gs/demo.html
My code however does not render at the same 960 px size. The horizontal srollbars of both pages do not match
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html...
I have a compaq presario cq 50 and a friend accidentally hit the screen with a ball. The laptop seems to be starting ok, hard drive working etc but the scrren is wrecked. Is it possible to put in a new screen? Can I do it myself? Or should i get a new laptop?
The above code does work with 'uploadall'. I had an error elsewhere.
cffile.serverFile contains the file name of the last file to be uploaded ( not an array ). This works fine for me, each time a file is uploaded I can write to the database to record it. If say 4 files are uploaded then the...
<cffile action="upload" filefield="form.FileToUpload"
destination="d:\home\your_domain.com\wwwroot\uploads\" nameConflict="makeUnique">
<cfset Uploaded_File_Name = CFFile.ClientFile>
<CFOUTPUT>File: [#Uploaded_File_Name#]</CFOUTPUT>
Is it possible to replicate this code using cffile...
Thanks for your help.
After initial testing this query is looking good
Select UserID
From Fruit Where Type in (Select Tester from Test)
Group by UserID having Count(Distinct(Type)) = (Select Count(Tester) from Test)
It strikes me that this would be a good way to index items that occur in...
Thanks for your help. It works well ( one typo, final line should be Pineapple.Type = 'Pineapple' )
I want to test which fruit a user has based on a table of possible values
Table Test
Tester
Orange
Pineapple
I have come up with the following
However, the results are not reliable. Also, if...
I have a fruit table as follows
UserID Type
1 Orange
2 Apple
1 Pineapple
2 Kiwi
2 Pineapple
I am trying to create a query which for example returns the userid of anyone who has both an Orange AND a Pineapple (in this case User ID 1)
I have been experiementing with...
i want to create some nice looking buttons!
Is it a bad idea to use images for buttons
For example
<a href="somefile.html" onclick="document.myform.submit();return false;"
><img alt="Submit" src="submit.gif"></a>
Is it better to style <input type="submit"> ?
Thanks for your reply. Actually I'm just testing the concept of how to centre 2 spans vertically (where one span contains a background image) so this is all the code I have. I am trying to achieve this layout
--------------------
Img Span Text span
---------------------
Thanks for your suggestions.
I have tried line-height in Firefox, which is working well for the text, but the image is not centering vertically
<div style="border:1px solid #000000;line-height:40px;">
<span style="background-image:url('1.jpg');">
<img src="pixel.gif"...
Thanks for your suggestion. However, this centers my 2 spans horizontally in the div , whereas I am trying to center them vertically.
To demonstrate, this gives me
------------------------------------------
span2
span1...
The project I am working on renders images as spans with background images ( see code below )
I want to vertically centre 2 spans inside a box. One of the spans contains a background image with a dummy pixel (pixel.gif which is 1 pixel) and the other contains text. I have tried to centre with...
I understand that inline elements are laid out in lines and so vertical placement does not apply
If this is the case, then why is it that <img> can be padded 'all round' whereas <span> can only be padded left and right
<div style="border:1px solid #000000">
<img src="1.jpg"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.