I'm converting my pages from HTML to CSS,,, Help me!

This is a discussion on "I'm converting my pages from HTML to CSS,,, Help me!" within the Web Page Design section. This forum, and the thread "I'm converting my pages from HTML to CSS,,, Help me! are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 1st, 2006, 12:46
Junior Member
Join Date: Aug 2006
Location: Jordan
Age: 22
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
I'm converting my pages from HTML to CSS,,, Help me!

Hi all,
I attached two pics, one i designed before learning CSS using table and one i'm trying to do using CSS,
As you see in the first picture there is empty blue area i want to fill with the table shown in the second picture using CSS, i tried by setting margin but it did't work, the contents was shown below the webscope division.

HELP PLEASE!!
Attached Images
File Type: jpg question.JPG (148.9 KB, 57 views)
File Type: jpg question 2.JPG (150.1 KB, 39 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 1st, 2006, 12:49
Junior Member
Join Date: Aug 2006
Location: Jordan
Age: 22
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I'm converting my pages from HTML to CSS,,, Help me!

The CSS file is below:

/*This is testing CSS on my Engineering website*/
body {background:#4682B4}
div.layout{background-color:#EAF4FF;margin-right:15%; margin-left:15%;margin-top=10%;border:outset 4pt; widht:1200px}
div.webscope {background: url('Images/Sydney2.jpg') no-repeat; width: 70%; height: 450px; margin-top: 5px;}
div.high&know {margin-left:900px;
border-left:1px solid gray;
padding:1em;}
.floatl{float:left}
.floatr{float:right}
/* TEXT STYLES*/
.f1{font:10pt italic bold arial}
.f2{font:12pt arial; color:black; font-weight:bold; font-style:italic; line-height:1.5}
.f3{font:8pt arial}


And the page code is,

<html dir="LtR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>AHM 531</title>
<link rel="stylesheet" type="text/css" href="test.css" />
</head>

<body>
<center>
<img alt="Banner" src="Images/BANNER1.bmp" height="35%" width="80%"/>
</center>
<div class="layout">

<marquee behavior="alternate" scrollamount="1" style="font-family: Courier New; font-size: 10pt; font-weight: bold">"Scientists discover the world that exists; Engineers create the world that never was."</marquee></font></b></p>
<div class="webscope"><font class=f2>
AHM 531's Scope....<br><br>
AHM 531.COM aims to serve students of Civil Engineering all over the world,
though most of the pages on this site are prepared especially for students in the University of Jordan.<br><br>
Also this site defines Civil Engineering with all of its branches to
help new students to decide whether they join Civil Engineering profession or not.<br><br>
E-Books gathered from all over the net are contained within this page to provide the help and reference to students,
besides lecture note provided by doctors in UJ and written by students Studying in UJ, LAB reports and Past Exams.<br><br>
AHM 531 is trying to connect Civil Engineers to world wide web, so that they can reach information where ever it was,
using AHM 531's Web directory you can access the most important Civil Engineering web sites.
</font></div>
</div>
</body>

</html>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 1st, 2006, 20:35
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I'm converting my pages from HTML to CSS,,, Help me!

It would be a great help and more chance of you getting a response if you formated your html and css in the normal manner so it can be read easily.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 1st, 2006, 22:10
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I'm converting my pages from HTML to CSS,,, Help me!

A link to the page in action would be best, however.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 2nd, 2006, 07:55
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 26
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I'm converting my pages from HTML to CSS,,, Help me!

Here we go:

HTML: Select all
/*This is testing CSS on my Engineering website*/
body {background:#4682B4}
div.layout{background-color:#EAF4FF;margin-right:15%; margin-left:15%;margin-top=10%;border:outset 4pt; widht:1200px}
div.webscope {background: url('Images/Sydney2.jpg') no-repeat; width: 70%; height: 450px; margin-top: 5px;}
div.high&know {margin-left:900px;
border-left:1px solid gray;
padding:1em;}
.floatl{float:left}
.floatr{float:right}
/* TEXT STYLES*/
.f1{font:10pt italic bold arial}
.f2{font:12pt arial; color:black; font-weight:bold; font-style:italic; line-height:1.5}
.f3{font:8pt arial}
HTML: Select all
<html dir="LtR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>AHM 531</title>
<link rel="stylesheet" type="text/css" href="test.css" />
</head>
<body>
<center>
<img alt="Banner" src="Images/BANNER1.bmp" height="35%" width="80%"/>
</center>
<div class="layout">
<marquee behavior="alternate" scrollamount="1" style="font-family: Courier New; font-size: 10pt; font-weight: bold">"Scientists discover the world that exists; Engineers create the world that never was."</marquee></font></b></p>
<div class="webscope"><font class=f2>
AHM 531's Scope....<br><br>
AHM 531.COM aims to serve students of Civil Engineering all over the world,
though most of the pages on this site are prepared especially for students in the University of Jordan.<br><br>
Also this site defines Civil Engineering with all of its branches to
help new students to decide whether they join Civil Engineering profession or not.<br><br>
E-Books gathered from all over the net are contained within this page to provide the help and reference to students,
besides lecture note provided by doctors in UJ and written by students Studying in UJ, LAB reports and Past Exams.<br><br>
AHM 531 is trying to connect Civil Engineers to world wide web, so that they can reach information where ever it was,
using AHM 531's Web directory you can access the most important Civil Engineering web sites.
</font></div>
</div>
</body>
</html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 2nd, 2006, 10:12
Junior Member
Join Date: Aug 2006
Location: Jordan
Age: 22
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I'm converting my pages from HTML to CSS,,, Help me!

I haven't uploaded the page yet.
Can't any one help me here please?!!

Last edited by ahm531; Sep 3rd, 2006 at 22:23.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 4th, 2006, 22:57
Junior Member
Join Date: Aug 2006
Location: Jordan
Age: 22
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I'm converting my pages from HTML to CSS,,, Help me!

It still didn't work, and I didn't hear from you for a long time. Any comments?!!
Or is it impossible to do that
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Sep 5th, 2006, 10:28
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I'm converting my pages from HTML to CSS,,, Help me!

There are a number of things I would like you to do with your code to bring it into line with standards which also involve getting rid of propriatory code:

1. Give it a DOCTYPE.

2. Change the charset to an ISO standard.

3. Get rid of the <center></center> tags.

4. Get rid of the <marquee></marquee> tags.

5. All styling should be handled through css. This sought of coding, <font classs=f2> is both syntactically wrong and very bad practice.

6. I'm not sure without looking it up but I think the use of the ampersand(&) in a class name is not allowed, eg., div.high&low.

Take care of this sought of thing and then lets see what you have.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Sep 5th, 2006, 22:29
Junior Member
Join Date: Aug 2006
Location: Jordan
Age: 22
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I'm converting my pages from HTML to CSS,,, Help me!

Thanx for the advices UKGEOFF, I could handle most of them except the charset point.
I haven't heard of this before, i looked it over the net and read an article about the ISO 10646 and UNICODE on w3.org; What i couldn't get what should i use as a character encoding, and how should it be declared, the page provided three methods as I understood
  1. An HTTP "charset" parameter in a "Content-Type" field.
  2. A META declaration with "http-equiv" set to "Content-Type" and a value set for "charset".
  3. The charset attribute set on an element that designates an external resource.
Which one is better and what is the third method?
And if the HTTP protocol has its default encoding, why should we determine one.
It is so complicated!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Sep 6th, 2006, 10:06
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I'm converting my pages from HTML to CSS,,, Help me!

For the time being, stick with this method and you won't go far wrong.
Code: Select all
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
If you are coding to xhtml standard and decide to use utf-8 for your charset, then use this variant.
Code: Select all
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Beware though that moving to utf-8 has thigs you will need to be aware of.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
converting, pages, html, css, help

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] converting flash to html Posie Starting Out 3 Dec 2nd, 2007 20:04
[SOLVED] Converting BBcode to HTML AdRock PHP Forum 10 Oct 9th, 2007 08:53
Converting from HTML to XHTML Aaron1988 Web Page Design 1 Dec 4th, 2006 15:09
help with converting HTML to XHTML sing2trees Web Page Design 4 Sep 20th, 2006 03:35


All times are GMT. The time now is 03:24.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42