Website help!

Want to just shoot the breeze? Forum 42 is the place!

Moderator: Moderators

ghosstt
Senior Member
Posts: 1551
Joined: Mon Feb 26, 2007 4:14 pm

Post by ghosstt »

bicostp wrote:Your coding isn't really bad, you just have a little debris here and there, and straight HTML isn't the easiest way to do what you want to do. :)

Here's my final entry, no more tweaking. (Any more optimization would delve into my shoddy, pathetic PHP skills. You don't wanna go there.) It should work at any resolution. 640x480 users will need to scroll, but if you run at that res you're used to it. :P

Put this in a file called stylesheet.css and put it in the same directory as your pages. (The root directory in this case.)

Code: Select all

#content {background-color:FFF; height:454; width:477; align:center;  text-align:left; border-style:solid; padding:10px; }
body {background-image:url('http://i6.photobucket.com/albums/y205/mustangman77/bggreen.png');}
A:link {color:000;}
A:visited {color:000;}
img {border:0;}
Here's your page template:

Code: Select all

<html><head>
<title>Wii Reviews! Wii Review The Full Game</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
</head>
<body><center>
<a href="http://www.freewebs.com/wii_reviews"><img src="http://i6.photobucket.com/albums/y205/mustangman77/logo.png"></a>
<map name="FPMap0">
<area href="http://www.freewebs.com/wii_reviews/reviews.htm" shape="rect" coords="130, 15, 197, 31">
<area href="http://z7.invisionfree.com/ForeverKnights/index.php?act=idx" shape="rect" coords="223, 14, 366, 33">
<area href="http://www.freewebs.com/wii_reviews/rumors.htm" shape="rect" coords="395, 14, 457, 33">
<area href="http://www.freewebs.com/wii_reviews/contactus.htm" shape="rect" coords="485, 14, 587, 34">
</map>
<img src="http://i6.photobucket.com/albums/y205/mustangman77/Linkbanner.png" usemap="#FPMap0">
<br>
<div id="content">
Welcome to Wii Reviews! We are a review site for Nintendo Wii games. On thing that makes us different is that we complete the game BEFORE we review it. That way, if the game gets really good after the first couple of levels, we will know this and we will review the game more accurately.
</div></center>
</html> 
You don't even need to upload these to the server; just put both files into a folder on your desktop and open the HTML page. (If you're using Notepad, make sure you call the style sheet stylesheet.css, not stylesheet.css.txt. Windows will do that if you have file extensions hidden. And if you're going to use Notepad to edit pages, don't. Get Notepad Plus http://notepad-plus.sourceforge.net . It does syntax highlighting, which makes the tags really stand out so it's easier to edit the pages.

Image
ok! thanks so much bicostp. this will all work in freewebs right? just make a file for the CSS thing, upload it to the freewebs account, and use the format for the rest? thanks so much
Harshboy
Portablizer
Posts: 3610
Joined: Tue Oct 11, 2005 3:44 pm

Post by Harshboy »

Just an fyi, Freewebs is very crappy. Try 100mb and get a .co.nr cloak over it (Like wiireview.co.nr)
ghosstt
Senior Member
Posts: 1551
Joined: Mon Feb 26, 2007 4:14 pm

Post by ghosstt »

Harshboy wrote:Just an fyi, Freewebs is very crappy. Try 100mb and get a .co.nr cloak over it (Like wiireview.co.nr)
i just like freewebs because its easy to use(ive used it many a time) and its never let me down

EDIT: i have found a problem with your code stuff bicostp! for the reviews, the white piece in the middle needs to be different sizes, depeding on the legnth of the review.. how do i do that?
bicostp
Moderator
Posts: 10491
Joined: Mon Mar 07, 2005 5:47 pm
Steam ID: bicostp
Location: Spamalot
Contact:

Post by bicostp »

ghosstt wrote:i have found a problem with your code stuff bicostp! for the reviews, the white piece in the middle needs to be different sizes, depeding on the legnth of the review.. how do i do that?
Whoops! Replace this:

Code: Select all

height:454;
with this:

Code: Select all

min-height:454;
in stylesheet.css. That size will be a minimum, and when it fills up it will stretch. :)
ghosstt
Senior Member
Posts: 1551
Joined: Mon Feb 26, 2007 4:14 pm

Post by ghosstt »

omg, thanks so much bicostp! CSS is really awesome :shock:
ghosstt
Senior Member
Posts: 1551
Joined: Mon Feb 26, 2007 4:14 pm

Post by ghosstt »

HELP! lol. my friend was checking out the site, and this is what he got

hes using IE7, 1600 x 1200

http://smg.photobucket.com/albums/v387/ ... rent=b.jpg
bicostp
Moderator
Posts: 10491
Joined: Mon Mar 07, 2005 5:47 pm
Steam ID: bicostp
Location: Spamalot
Contact:

Post by bicostp »

I guess 1280x1024 isn't enough space to have both side by side but 1600x1200 is. Add a line break after the logo in the template and it should work fine.

Sorry, kinda tired today. :lol:
ghosstt
Senior Member
Posts: 1551
Joined: Mon Feb 26, 2007 4:14 pm

Post by ghosstt »

ok, thanks illl try it
ghosstt
Senior Member
Posts: 1551
Joined: Mon Feb 26, 2007 4:14 pm

Post by ghosstt »

can you use CSS to display the text of a file? like if i have a review written in a txt file and uploaded onto the server like i did for the CSS file, can i have CSS bring in the text?
gannon
Moderator
Posts: 6974
Joined: Sun Apr 04, 2004 4:48 pm
Location: Near that one big lake
Contact:

Post by gannon »

Only way to do that without a server side language would be javascript or the use of a frame/iframe AFAIK
ghosstt
Senior Member
Posts: 1551
Joined: Mon Feb 26, 2007 4:14 pm

Post by ghosstt »

ok. is there a way i can make it so when someone view my source code, it gives them some dumb message, or doesn't let them? not a right click stopper either. i want a full on, no source code viewer
Post Reply