Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 7th, 2007, 07:15 PM
Werner Partner
Guest
 
Posts: n/a
Default Table to CSS - call for help

I thought about your suggestion to leave tbales and, instead o, work
with css.

The problem is, that I still don't know veray much about css, so I have
some difficulites to understand css-suggestions and to make little more
complex designs by myself.

Nevertheless I tried

This is the original page:
http://www.kairos-team.de

pic-division, banner, sidebar, and main division are realized by tables.
The height of the banner must be the same as the height of the picture,
and the width of the sidebar must be the width of the picture. So
everything is automatic, and I have different pages as
http://www.sonoptikon.de
or
http://www.akkordeon-herten.de

It's always the same design and the same frame, it fits automatically

I made a trial to convert ist to css, the first, raw result is here:
http://www.kairos-team.de/test/

There are some questions and some problems:

One of the first problem is that in the banner there are two tables in
the tables, and perhaps this should be changed.

Otherwise it lookes nice, I know the width and the height of the
picture, so I can count the width of banner and main, that's easy.

Questions:
How can I pull the sidebar down to the legnth of the main section.

Why is the footer not under sidbar _and_ main?

thanks for help

Werner




This is the css File:
body,
h1,h2,h3,h4,h5,ul,ol,li,div,td,th,address,blockquo te,nobr,b,i
{ font-family:Arial,sans-serif;}
p,ul,ol,li,div,td,th,address,nobr,b,i
{ font-family:Arial,sans-serif;font-size:10pt; }

h1 { font-size:24pt; color:#AA0000; margin:8px; margin-left:4px}
h2 { font-size:16pt; margin:8px; margin-left:4px}
h3 { font-size:12pt; margin:6px; margin-left:4px}
h4 { font-size:10pt; margin:6px; margin-left:4px}

html {
margin:0;
padding:10;
background:#a7a09a;
color:#000;
}
body {
min-width:900;
}
#wrap {
background:#99c;
margin:0 auto;
width:950px;
}

#logo {
background:#FF8844;
float:left;
width:120px;
height:100px
}
#banner {
background:#FF8844;
float:right;
width:830px;
height:100px
}
#sidebar {
background:#FF8844;
float:left;
width:120px;
}
#main {
background:#ffffff;
padding:10px;
float:right;
width:810px;
}
#footer {
background:#999
clear:both
}



--
--------------------------------------------------
Dorothee & Werner Partner, 45699 Herten
http://www.sonoptikon.de
  #2  
Old August 7th, 2007, 09:25 PM
John Hosking
Guest
 
Posts: n/a
Default Re: Table to CSS - call for help

Werner Partner wrote:
Quote:
I thought about your suggestion to leave tbales and, instead o, work
with css.
Whose suggestion? Are you talking to me? Is this supposed to be an e-mail?
Quote:
>
This is the original page:
http://www.kairos-team.de
Quote:
I made a trial to convert ist to css, the first, raw result is here:
http://www.kairos-team.de/test/
>
There are some questions and some problems:
No surprise. Step 1 is always to validate your code. For markup use
http://validator.w3.org/ and for validating your stylesheets go to
http://jigsaw.w3.org/css-validator/ . Without valid code all bets are off.
Quote:
>
Questions:
How can I pull the sidebar down to the legnth of the main section.
>
Why is the footer not under sidbar _and_ main?
Invalid CSS. You're missing a semi-colon in the #footer ruleset.
Quote:
>
This is the css File:
No, don't paste this. We've got your URL, we can get your CSS.


--
John
Pondering the value of the UIP: http://blinkynet.net/comp/uip5.html
  #3  
Old August 8th, 2007, 06:55 AM
Werner Partner
Guest
 
Posts: n/a
Default Re: Table to CSS - call for help

John Hosking schrieb:
Quote:
Werner Partner wrote:
Quote:
>I thought about your suggestion to leave tbales and, instead o, work
>with css.
>
Whose suggestion? Are you talking to me? Is this supposed to be an e-mail?
No, the suggestion came from Tim Streater, he posted a link with a
tutorial. I tried to follow the tutorial, and I am thinking about
throwing tables away and working with css.

Quote:
>
Invalid CSS. You're missing a semi-colon in the #footer ruleset.
thanks! This was the mistake.

It's looking much better now - let's say it looks as it should look.
http://wwwkairos-team.de/test/

The banner is not ready yet.
I will put the questions if there are some.

thanks

Werner


--
--------------------------------------------------
Dorothee & Werner Partner, 45699 Herten
http://www.sonoptikon.de
  #4  
Old August 8th, 2007, 06:55 PM
John Hosking
Guest
 
Posts: n/a
Default Re: Table to CSS - call for help

Werner Partner wrote:
Quote:
John Hosking schrieb:
Quote:
Quote:
>Invalid CSS. You're missing a semi-colon in the #footer ruleset.
>
thanks! This was the mistake.
You're welcome. But that wasn't the only mistake. In fact you seem to
have overlooked my actual advice (which you've snipped):
Quote:
No surprise. Step 1 is always to validate your code.
If you had done *that*, you would have solved the problem of the
semi-colon "on your own" and your code would be valid now, too, which it
isn't.
Quote:
>
It's looking much better now - let's say it looks as it should look.
http://www.kairos-team.de/test/
(URL corrected, maybe) Maybe it does, maybe it doesn't; with invalid
code, how can you be sure?

In my case, using FF, it doesn't; the footer is small and scrunched up
under the menu. In IE6, the footer is tall, stretching from under the
menu to the bottom of the content.

Anyway, it doesn't look like this URL, corrected or not, has the missing
semi-colon in the CSS. What URL really "looks as it should look?"

--
John
Pondering the value of the UIP: http://blinkynet.net/comp/uip5.html
  #5  
Old August 8th, 2007, 11:25 PM
Beauregard T. Shagnasty
Guest
 
Posts: n/a
Default Re: Table to CSS - call for help

Werner Partner wrote:
Quote:
But - there is another crucial thing: In the header are tables, too.
You see it, when you look at the source code.
>
But I think the header could be designed with css, too. I will try
tomorrow or the day after tomorrow.
Maybe this will give you some ideas:
http://k75s.home.att.net/banner.html

--
-bts
-Motorcycles defy gravity; cars just suck
  #6  
Old August 9th, 2007, 07:55 AM
Werner Partner
Guest
 
Posts: n/a
Default Re: Table to CSS - call for help

Beauregard T. Shagnasty schrieb:
Quote:
Werner Partner wrote:
>
Quote:
>But - there is another crucial thing: In the header are tables, too.
>You see it, when you look at the source code.
>>
>But I think the header could be designed with css, too. I will try
>tomorrow or the day after tomorrow.
>
Maybe this will give you some ideas:
http://k75s.home.att.net/banner.html
>
thanks

Slowly I will get along.

Werner

--
--------------------------------------------------
Dorothee & Werner Partner, 45699 Herten
http://www.sonoptikon.de
 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles