Borzoi 24 Posting Whiz

Two sisters who are twins were born in different years. How is this possible?

Borzoi 24 Posting Whiz

They all like pie. Who doesn't like pie?

Some people may favour cake over pie but they still like pie.

Borzoi 24 Posting Whiz

I've heard that one before. The rumble of the train caused the fishbowl to fall off the shelf, causing it to shatter. Romeo and Juliet are fish.

Borzoi 24 Posting Whiz

Fair enough. Come back to it some other time.

Borzoi 24 Posting Whiz

Yep.

Where can you find roads without cars, a forest without trees and a city without houses?

Borzoi 24 Posting Whiz

That's obvious. It's the mother.

There is a grandfather, 2 fathers, 2 sons and a grandson in a room. How many people are in the room?

Borzoi 24 Posting Whiz

Correct.

Trying to think of another riddle...

Borzoi 24 Posting Whiz

The scrollbar at the bottom of the page would have allowed them to scroll horizontally and if they had scroll lock enabled, they could just use the arrow key. Highlighting the problem area would also allow them to effectively "drag" the screen across.

Borzoi 24 Posting Whiz

Give up yet?

Borzoi 24 Posting Whiz

Disabling centre click won't stop them from scrolling across.

It's very likely you have some content on your page which is stretching it wider than you want. Also, the url in the background image should have quotes:

background-image: url('../images/bg-home.jpg');
Borzoi 24 Posting Whiz

cguan_77,

You haven't closed your <p> tag and you're missing a <title> tag. That page would not validate, especially with that doctype.

Borzoi 24 Posting Whiz

I know how to test it but I can't until I get into the office which is why I asked if anyone knew. I can't get into the office today due to snow because the bus company here sees snow and thinks "We can't go on!" like it's a perilous journey.

Borzoi 24 Posting Whiz

You are welcome. Remember to mark the thread as solved.

Borzoi 24 Posting Whiz

That should work, it would just mean the batch file is longer than I originally thought.

Just one question:

Is the username case sensitive?

Borzoi 24 Posting Whiz

Cheater. :P

Here's another one:

What can be seen in the middle of March and April but not at the beginning or end of either?

Borzoi 24 Posting Whiz

Heh, you'll kick yourself when you hear the answer.

Borzoi 24 Posting Whiz

Nope. E isn't a word. I'm going to edit my previous post as that should read "What word starts..."

Borzoi 24 Posting Whiz

What word starts with an E, ends with an E and has only one letter?

Borzoi 24 Posting Whiz

Haz425, this site is to help people, not do their work for them. If you don't want to spend time learning how to do it and expect one of us to just write the code for you then you would be expected to pay whoever does that as it takes time and resources.

Borzoi 24 Posting Whiz

David's father has three sons:

Snap, Crackle and who?

Borzoi 24 Posting Whiz

That's a good point Borzoi, but can you indicate a situation where float: left would not work when used on divs?

I cannot indicate any situation where it wouldn't work but I was referring to the internal <div> tags which wouldn't be floating, not the wrapping one.

Try both of these codes to see what I mean:
(use one of the w3schools "TryIt" pages if you want).

<html>
  <head>
    <title>banana</title>
    
  </head>
  
  <body>
     <div style="float: left; color: #5555ff;">
       <div>Element 1</div>
       <div>Element 2</div>
       <div>Element 3</div>
     </div>
     <p>This will be the content of the site.</p>
  </body>
</html>
<html>
  <head>
    <title>banana</title>
    
  </head>
  
  <body>
     <div style="float: left; color: #5555ff;">
       <div style="display: inline;">Element 1</div>
       <div style="display: inline;">Element 2</div>
       <div style="display: inline;">Element 3</div>
     </div>
     <p>This will be the content of the site.</p>
  </body>
</html>

You probably don't even need the internal <div> tags and just need the element itself, whether it's image or text. As long as they're coded without a <br /> or without their own positioning of some sort, they should be displayed on the same line. The second code I provided would display the same as:

<html>
  <head>
    <title>banana</title>
    
  </head>
  
  <body>
     <div style="float: left; color: #5555ff;">
       Element 1
       Element 2
       Element 3
     </div>
     <p>This will be the content of the site.</p>
  </body>
</html>

The float: left; would probably be better left out if it's for a menu bar of some sort so that the content is automatically placed beneath it.

<html>
  <head>
    <title>banana</title>
    
  </head>
  
  <body>
     <div style="color: #5555ff;"> …
Borzoi 24 Posting Whiz

<div> tags are naturally display: block; so if you're going to use peachy0685's method, you should use either <span> or in the class of the <div> put display: inline; otherwise you might get each element on a new line. There are some things that <div> supports that <span> doesn't. For example, positioning.

cguan_77 commented: thanks i don't know that css got inline command +0
Borzoi 24 Posting Whiz

Why do you want to disable centre click? All it does is scroll or open links in a new tab.

Borzoi 24 Posting Whiz

Is it just text you're aligning or are they images or other elements?

Have you tried just coding them inline?

I.e.:

<!-- Assuming you're using images -->

<img src="images/image1.jpg" alt="image 1" /> | <img src="images/image2.jpg" alt="image 2" /> | <img src="images/image3.jpg" alt="image 3" />
Borzoi 24 Posting Whiz

You want to add pt, not px.

<style type="text/css">
body { color: <?php print $_POST["color"] ?>;
font-family: <?php print $_POST["font"] ?>;
font-size: <?php print $_POST["font-size"] ?>pt;
}
</style>

</head>
<body>

<?php print $_POST["box"] ?>
Borzoi 24 Posting Whiz

If you want "Username" to be the same as "userNAME" instead of them being 2 different users (I.e.: you don't need to type your username exactly how you did when you signed up) you should use the toupper(); function:

if(toupper($result["username"]) === toupper($username))
{
  //user exists
}
else
{
  //user doesn't exist
}
Borzoi 24 Posting Whiz

If you're starting out with PHP, I would suggest going to http://w3school.com/php and http://php.net to get the basics.

Borzoi 24 Posting Whiz

Google will demote the pagerank of similar pages. If there's only about 10 words different on each page, it's going to assume they are the same page and demote them.

I've noticed that you don't have your site set up to have either the www. or not. Google will detect http://chinesetutorscentre.co.uk/UK/oxford.php and http://www.chinesetutorscentre.co.uk/UK/oxford.php as two different pages which will demote the page rank. You should either set up your dns to redirect any request to the non www. site to the www. site (or visa-versa) or set up your .htaccess file to do a rewrite.

Borzoi 24 Posting Whiz

text-align: justify; is correct and valid.

http://www.w3schools.com/css/css_text.asp

Borzoi 24 Posting Whiz

Your CSS looks fine.

Make sure the CSS file has the file extension .css and not .txt or anything else.

What is the code in your HTML file that you've used to link to the CSS file?

Borzoi 24 Posting Whiz

To make CSS "external" as you call it, cut and paste it into it's own file with no other HTML, not even the <script> tags and call it whatever you want with the extension .css. You would then replace where it was in the page code to this:

Assume the stylesheet you saves is called style.css

<link rel="stylesheet" type="text/css" href="foldername/style.css" />

if it's in the same folder then you just need style.css an no folder name. Just like other links, use relative links.

Borzoi 24 Posting Whiz

Which door would the other man tell me will bring me great pleasure?
Truth teller will tell you the pain door because that is what the liar would tell you.
The liar will also tell you the pain door because the truth teller would say the pleasure door but he has to lie and tell you the other door.

Then take the other door.

Correct.

Borzoi 24 Posting Whiz

I don't know what your problem is but I can see many problems: margin: self; does nothing. To centre, you'd need to use text-align: center; . background-image: url ("images / fond.png); will not display the image. Remove the spaces before and after the forward slash. <code type="Css"> is just wrong. Does nothing at all in any way except prevent the page from validating.

You need to provide us with information about the problem as just saying "I have a problem" means we can't help.

Borzoi 24 Posting Whiz

When linking to images or other pages, you should always use relative links. Only use absolute links when linking to external sites.

<!-- Using relative links means that if your domain changes, you wouldn't have to change the code. -->
<a href="index.html">Home Page</a>
<img src="images/picture.jpg" />

<!-- While not necessarily incorrect, if your domain changes, you would have to manually change the link. -->
<a hred="http://mywebsite.com/index/html">Home Page</a>
<img src="http://mywebsite.com/images/picture.jpg" />

Depending on the setup of your server, you may need to put ./ at the beginning of the link to tell it to search the current folder. If you wish to go up a folder, prefix the link with ../ .

If the current page is in the "Banana" folder and the image you want is in the "images" folder for example:

<!-- The ../ tells the server to go up one folder. -->
<img src="../images/picture.jpg" />

If the current page is in the "Apple" folder which is within the "Banana" folder then you would use this:

<!-- The ../../ tells the server to go up two folders. -->
<img src="../../images/picture.jpg" />
Borzoi 24 Posting Whiz

Ask the liar which door will give you pleasure. He will obviously show the door of pain, lying about it being the door of pleasure. The truth teller will show you the correct door for pleasure. Choose the opposite of the liar and the door the truth teller points out.:)

You don't know which one is the liar and which is the truth teller. They would both point to different doors in your scenario and thus you would get no true answer.

Borzoi 24 Posting Whiz

Here's one that took me a while when I first heard it.

A man walks up to two unmarked doors, each with a doorman. There is a sign between the doors saying "One of these doors will bring you great pleasure, the other will give you great pain. One of the attendants will lie, one will tell the truth. You may ask one question for both to answer."

What question should the man ask to find out the good door?

Remember: only one question which both will answer.

Borzoi 24 Posting Whiz

To be fair though, my answers are technically correct.

Borzoi 24 Posting Whiz

Hmm...

An STD/STI?

SgtMe commented: LOL +0
Borzoi 24 Posting Whiz

No, because there would still be a need for people to maintain the system. Upgrades and such.

Borzoi 24 Posting Whiz

The thing is, this problem could have been prevented if they had the systems and network set up properly in the first place.

Borzoi 24 Posting Whiz

a Birds nest :)

What is it that you can keep after giving it to someone else?

Your love?

Borzoi 24 Posting Whiz

You're welcome.

Borzoi 24 Posting Whiz

Three men book a hotel room that costs £30. They pay, then go to the room. Then, the manager realises that they should have only been charged £25. He gives the porter £5, with instructions to give it back to the three men. Realising that £5 won't split between 3 people, the porter decides to give them £3 back (£1 each) and pocket £2 for himself.

The men each paid £27 pounds for the room (£30 minus £3 split between them from the refund) and the porter has £2. 27+2 = 29. Where has the missing £1 gone?

PS.
Easy-ish to work out, hard to explain the answer. DON'T google it...on your honour -_-

£27 is the amount that the men didn't have. The £25 to the hotel and the stolen £2 from the porter (£25 + £2). £30 - £3 is their total outgoings (payment - refund). So the final sum should be £27 for what they don't have plus the £3 they do have to get the original £30.

The hotel kept £25
The porter kept £2
The men kept £3

Thing that should be added is what they kept and not what the porter stole.

What the hotel kept + what the porter stole = what the men don't have
What the men don't have + what the men have = £30

Your sum in the final paragraph was:

(What the hotel kept + what the porter stole) + what the porter stole = £29

Borzoi 24 Posting Whiz

I had a look at your source code and have an idea which may work.

Try this:

Get rid of the margins in the table then wrap the table in a <div> tag with the width of the image you're trying to align it with like this:

<div style="width: 900px; margin-left:auto; margin-right:auto;"><table id="web-buttons-idld2xa">REST OF MENU BUTTON CODE</table></div>

All you'll need to do is replace the 900px with whatever the width of the section you want to align it with is.

Borzoi 24 Posting Whiz

Simple one:

What gets wetter as it dries?

Borzoi 24 Posting Whiz

You're welcome.

Borzoi 24 Posting Whiz

Wind?

Borzoi 24 Posting Whiz

I just had a problem with my computer here at work and I knew the problem and solution straight away but I do not have sufficient privileges to fix the error on my account so I had to contact IT to get it done.

It's taken the guy who came up to fix it over an hour to find the solution. I tried to tell him what to do but each time he just said "that won't work" and, you guessed it, his final solution what what I had been telling him all along.

It just frustrates me how I constantly get turned down for IT jobs because I "don't have enough experience" yet these people who obviously don't know solutions to the simplest of problems seem to get jobs in IT so easily.

I have even made a list for myself of problems with the IT system here which can be solved very easily. Probably not even a days work and the results would also mean their workload is reduced. I'm only on a 6 month contract with this job so I think I'm going to go down there on my last day and just list all the problems I've found which I have a solution to.

Borzoi 24 Posting Whiz

Nothing

How many marbles can you fit into an empty bag?

Borzoi 24 Posting Whiz

What is the proper way to use sessions?

I have a forum on my site which I've coded from scratch but I've not been using sessions for the users and instead I've been using just cookies to determine if they're logged in or not. I know my current way isn't ideal so I thought I should research sessions as it seems to be the right way to do it.