Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > CSS problems

Reply
Thread Tools

CSS problems

 
 
Nik Coughin
Guest
Posts: n/a
 
      02-19-2004
Hi

I am trying to create what initially seemed to be a fairly simple layout
using CSS.

This is what I am trying to do:

http://homepages.ihug.co.nz/~nrkn/explain/req.png

I have made a prototype of the page using tables to show you how the page
should look and work when the browser window is resized. Please ignore the
shabby html, I threw this together in Frontpage. It works in both IE and
Mozilla well enough to explain what I am trying to do (although is a bit odd
in Mozilla):

http://homepages.ihug.co.nz/~nrkn/explain/table.html

Here is my attempt using CSS:

http://homepages.ihug.co.nz/~nrkn/explain/css.html

I got this far and am completely unsure of how to proceed. Any pointers
would be greatly appreciated.

TIA,

Nik Coughlin



 
Reply With Quote
 
 
 
 
rf
Guest
Posts: n/a
 
      02-19-2004

"Nik Coughin" <nrkn!no-spam!@woosh.co.nz> wrote in message
news:MKWYb.48968$...
> Hi
>
> I am trying to create what initially seemed to be a fairly simple layout
> using CSS.
>
> This is what I am trying to do:
>
> http://homepages.ihug.co.nz/~nrkn/explain/req.png


There is your first problem. You are still thinking tables. CSS is not
tables. When you draw a back of the envelope sketch for your page don't draw
in tables. Draw what the whole page should look like.

With tables one is used to chopping up images to fit in the various cells.
Most of the stuff on your sketch is fixed anyway so why chop it up. Just
make one great huge gif for the page background. It wont be big, 6K or so.

Then plonk in the other stuff. A logo to the left, some houses inside a span
that is floated to the right and a title.

Then we can have an ul containing the nav bar (positioned absolutely at the
required position) and a div containing the content (positioned absolutely
at the required position).

5 elements on the page. Simple.

Here is a working draft:
http://users.bigpond.net.au/rf/test/x/index.html

Flavour to suit but keep in mind the KISS principle

Cheers
Richard.


 
Reply With Quote
 
 
 
 
Nik Coughin
Guest
Posts: n/a
 
      02-19-2004
You're right.

Thanks a million.

rf wrote:
> "Nik Coughin" <nrkn!no-spam!@woosh.co.nz> wrote in message
> news:MKWYb.48968$...
>> Hi
>>
>> I am trying to create what initially seemed to be a fairly simple
>> layout using CSS.
>>
>> This is what I am trying to do:
>>
>> http://homepages.ihug.co.nz/~nrkn/explain/req.png

>
> There is your first problem. You are still thinking tables. CSS is not
> tables. When you draw a back of the envelope sketch for your page
> don't draw in tables. Draw what the whole page should look like.
>
> With tables one is used to chopping up images to fit in the various
> cells. Most of the stuff on your sketch is fixed anyway so why chop
> it up. Just make one great huge gif for the page background. It wont
> be big, 6K or so.
>
> Then plonk in the other stuff. A logo to the left, some houses inside
> a span that is floated to the right and a title.
>
> Then we can have an ul containing the nav bar (positioned absolutely
> at the required position) and a div containing the content
> (positioned absolutely at the required position).
>
> 5 elements on the page. Simple.
>
> Here is a working draft:
> http://users.bigpond.net.au/rf/test/x/index.html
>
> Flavour to suit but keep in mind the KISS principle
>
> Cheers
> Richard.




 
Reply With Quote
 
Nik Coughin
Guest
Posts: n/a
 
      02-19-2004
Not thinking in terms of tables (I hadn't even realised that I was doing so)
is such a paradigm shift.

I can think of another couple of ways that I could do this now too, although
I am going to go with your big background image method.

Thanks again.

rf wrote:
> "Nik Coughin" <nrkn!no-spam!@woosh.co.nz> wrote in message
> news:MKWYb.48968$...
>> Hi
>>
>> I am trying to create what initially seemed to be a fairly simple
>> layout using CSS.
>>
>> This is what I am trying to do:
>>
>> http://homepages.ihug.co.nz/~nrkn/explain/req.png

>
> There is your first problem. You are still thinking tables. CSS is not
> tables. When you draw a back of the envelope sketch for your page
> don't draw in tables. Draw what the whole page should look like.
>
> With tables one is used to chopping up images to fit in the various
> cells. Most of the stuff on your sketch is fixed anyway so why chop
> it up. Just make one great huge gif for the page background. It wont
> be big, 6K or so.
>
> Then plonk in the other stuff. A logo to the left, some houses inside
> a span that is floated to the right and a title.
>
> Then we can have an ul containing the nav bar (positioned absolutely
> at the required position) and a div containing the content
> (positioned absolutely at the required position).
>
> 5 elements on the page. Simple.
>
> Here is a working draft:
> http://users.bigpond.net.au/rf/test/x/index.html
>
> Flavour to suit but keep in mind the KISS principle
>
> Cheers
> Richard.




 
Reply With Quote
 
 
 
Reply

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Layout question - how to duplicate a table layout with CSS Eric ASP .Net 4 12-24-2004 04:54 PM
confused - html validates, css validates but validate css from the html causes errors Titus A Ducksass - AKA broken-record HTML 6 11-15-2004 12:59 PM
Set CSS property equal to another CSS property? Noozer HTML 10 10-13-2004 09:20 PM
Is there a way to set the a CSS property to be explicitly the same as another CSS property? Joshua Beall HTML 1 12-10-2003 07:21 PM
print.css and screen.css tom watson HTML 1 09-09-2003 02:48 PM



Advertisments
 



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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57