Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-21-2008, 07:40 PM   PM User | #1
foxesboi
New to the CF scene

 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
foxesboi is an unknown quantity at this point
could you help me with this code

hi all, new to the forum and this is my first post . i have myspace and so far i've wrote (from the help of researching and copying some of other codes iv seen on the net and this is the code i have:

<center><div style=font-size:9px;position:fixed;right:0px;top:0px><style type="text/css"> textarea {background-color:4a4a4a; border-width: 2px; border-style:solid; border-color:000000; color:000000; font-family:Arial; font-size:12 px;} input {background-color:4a4a4a; border-width:2pxborder-style:solid; border-color:000000 ; color:000000 ; font-family:Arial; font-size:12 px;} </style><form method="post" action="index.cfm?fuseaction=user.ConfirmComment"> <input type="hidden" name="friendID" value="FRIENDID"> <textarea name="f_comments" style="width: 100%; height: 60px;"></textarea><BR> <input type="submit" value="Go..."> <input type="reset" value="Woops..."></form></center>

its a comment box and all works fine, jus want it too look that bit better, you all know what i mean. is there a way i can remove the scroll bar that is inside the text area?

[i know the friendid is missin i removed it for obvious reasons]
if you want to see it so far my page is:
www.myspace.com/nikedmands
thank you all in advance
foxesboi is offline   Reply With Quote
Old 01-21-2008, 07:51 PM   PM User | #2
effpeetee
Senior Coder

 
effpeetee's Avatar
 
Join Date: Feb 2007
Location: Clapham Junction - London SW
Posts: 4,884
Thanks: 228
Thanked 204 Times in 203 Posts
effpeetee is an unknown quantity at this point
Hello and welcome.

The very first thing that you must do is to put a DOCTYPE as the first line in the program. If you look at the "Sticky" entries at the top of the CF entry page, you will find information there or failing that, the "Sources" url in my signature has a reference for this subject.

http://www.alistapart.com/stories/doctype/

Probably this would do.

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


Other than that I find the page too dark and not easy to read.

Frank.
__________________
* Sources (updated: 21.11.2012.
Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

Last edited by effpeetee; 01-21-2008 at 07:57 PM..
effpeetee is offline   Reply With Quote
Old 01-21-2008, 08:02 PM   PM User | #3
foxesboi
New to the CF scene

 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
foxesboi is an unknown quantity at this point
thank you for the response effpeetee, not tried it yet but im sure it will help me out alot, and also thanks for your opinion on my page 'any advice is nice'.
foxesboi is offline   Reply With Quote
Old 01-21-2008, 08:20 PM   PM User | #4
Apostropartheid
The Apostate


 
Apostropartheid's Avatar
 
Join Date: Oct 2007
Posts: 3,215
Thanks: 16
Thanked 265 Times in 263 Posts
Apostropartheid is on a distinguished road
Frank, it's to be inserted into MySpace *shivers visibly*. You can't fix it from the top, so invalid code's fair game here, in my opinion.

Add some padding to the cells and try making the background color lighter (maybe white?).
__________________
Blog | Twitter
Useful links: W3C HTML Validator | W3C CSS Validator | HTML 5 Guide
CF: HTML & CSS Resources/Tutorials Thread | HTML & CSS Posting Rules and Guidelines
Remember: no link, no code, no help!

Last edited by Apostropartheid; 01-21-2008 at 08:30 PM..
Apostropartheid is offline   Reply With Quote
Old 01-21-2008, 08:25 PM   PM User | #5
effpeetee
Senior Coder

 
effpeetee's Avatar
 
Join Date: Feb 2007
Location: Clapham Junction - London SW
Posts: 4,884
Thanks: 228
Thanked 204 Times in 203 Posts
effpeetee is an unknown quantity at this point
Quote:
Originally Posted by CyanLight View Post
Frank, it's to be inserted into MySpace *shivers visibly*. You can't fix it from the top, so invalid code's fair game here, in my opinion.
Yes CyanLight,

I half thought as much. I was just casting a line as it were. Using these ready made sites can be a nightmare with all their JScript etc,

I usually don't involve myself as my knowledge of these sites is scanty. However, some knowledge of DOCTYPES won't do any harm, ready for later.

Regards

Frank
__________________
* Sources (updated: 21.11.2012.
Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.
effpeetee is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:58 PM.


Advertisement
Log in to turn off these ads.