https://www.google.ca/search?q=Left+to+Right+Image+slider
Next time please try Google first.
Yeah, you can PM me if you haven't fixed it yet.
Are you setting something to position: fixed;
?
Okay so first off you need a table - use the <table></table>
tags to create one...
CODE:
<tablet>
</table>
Now you want 13 rows - use the <tr></tr>
tags! (I'm only going to make a table with 3 rows, you do the rest)
CODE:
<table>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
Now you want three columns, in other words, three table divisions PER row - use the <td></td>
tags!
CODE:
<table>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</table>
Now, that you have a basic table, use CSS 3.0 to style the table:
background-color: lightgreen;
. Now in every other <tr></tr>
tags, set the class to green_backgroundborder: 1pt solid darkgreen;
P.S. There are a lot of variables.. Like:
> int one;
> int two;
> int three;
> int launch;
> int one_1 = 1776;
> int two_1 = 1999;
> int three_1 = 2012;
> int launch_1 = 138974;
Couldn't these be in some kind of an array?
or if you do not understand arrays, you can declare them on the same line... it looks cleaner.
e.g. Instead of
int a;
int aa;
int aaa;
int aaaa;
you can write int a, aa, aaa, aaaa;
You can even declare variables - int a, aa = 25, aaa, aaaa = 10;
@JameB, It's rarely a good idea to include files using the HTTP protocol, and it's even rarer that you'd want to include a text file using the include command. Typically you'd want to read such files in using file_get_contents or a fopen handler.
Ah I didn't read all of the posts... but yeah in this case it's not the best way to do what OP is trying to do. But I was wondering, did you say that for any other reasons?
<?php
$serverdir = "http://localhost:8080/core/data/";
include($serverdir."file_name.txt");
?>
Is that helpful?
@Sanchixx this is in php section because site must be in php!
You can't make the entire website in PHP, you have to use HTML. PHP will supplement HTML/CSS/w.e. you want to use.
This thread should've been in the Web Design section.
Find a problem at your university/college/teaching school and address it by making a website and make it look pretty since you want it all girly (no sexism intended towards fellow men who like to make their websites good looking)
vishalonne, the code you wrote is exactly what I suggested!
Good luck!
To create what you want, you should create a PHP script that adds one to the number existing in a text file somewhere.
In the HTML file, you simply echo the contents of the file where needed.
<small>This page has been visited <?php $count = file_get_contents("INSERT_PATH_TO_THE_TEXT_FILE"); echo $count; ?> times!</small>
At the end of the same HTML page, insert a function that:
Opens a text file, reads it's contents in a variable
Adds one to the number read
Overwrites the existing file with the new number (after adding one to the existing number)
Closes the file
Hope that's clear!
What's wrong with the code you have there? It works!
If you want them to be equal despite the capital & lower case letters; you'll have to do some manipulation of the data before you compare them.
string strtolower ( string $variable )
The above statement will convert a given variable to all lower cases; now you can do the comparison without having to worry about the upper/lower cases.
I have a comparison of 2 variables in a script, and am not getting the desired results, and wondered what the simplest comparison would be to obtain those results...
Try this:
#footer
{
color: #fff;
width: 1020px;
height: ____px;
margin-left: auto;
margin-right: auto;
background-image: url(images/ourbg2.png);
background-repeat: repeat;
}
And when all fails, try to fix all the errors you'll see when you put your CSS here: http://jigsaw.w3.org/css-validator/#validate_by_uri+with_options
Good luck!
I'd advise against posting the entire code. People will just search Google, find this post and be lazy and just copy it!
I know I would. :P
In C++, if you compare something like R WITHOUT any quotes, it interprets it as a variable. So, I assume that the user will enter R or r. If so, you need to check like
if (input == 'R')
{
}
or like this
if (input == "stop")
{
}
Double quotes are usually used for more than one characters but it doesn't really matter.... Also, read the post that says your boolean logic is incorrect.
Every thing that you can type or have displayed in the DOS shell has a certain number known as the ASCII value. What the problem is asking is "to display all the characters that can be represented in the given range."
edit:
cout << static_cast<char>(100) << endl;
with iostream libray and std namespace, this will display the character that is represented by the ASCII value 10.
To find the ASCII value of a character,
cout << (int)'i' << endl;
same thing again, with iostream libray and std namespace.
Why do you have to do something that complicated??
Here is what I came up with!
#include <iostream>
#include <string>
using namespace std;
int main()
{
string y;
char x;
cout<<"Please enter a string: "<<endl;
cin>>y;
cout<<"Please enter a character: "<<endl;
cin>>x;
cout << endl << endl << endl;
for(int i = 0; i < y.length(); i++)
{
if(y[i] == x)
{
cout << x << " found at " << i << '.' << endl;
cout << "Replacing the " << y[i] << " with 'x'." << endl << endl << endl;
y[i] = 'x';
}
}
cout << "The final string is " << endl << y << endl;
return 0;
}