Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Site Layout CSS

Reply
Thread Tools

Site Layout CSS

 
 
James Smith
Guest
Posts: n/a
 
      08-10-2004
I'm trying to get into CSS and design sites with it.

I'm told I should use CSS for the layout and not HTML Table
(understandable).

Is there a way to make a template and call every page inside of this? or
does every file I create have to have all the info for the header,
footer and side panel in it?

Can some one shed some light on this.

James.
 
Reply With Quote
 
 
 
 
RobM
Guest
Posts: n/a
 
      08-10-2004

"James Smith" <> wrote in message
news:4118b06d$0$16886$ u...
> I'm trying to get into CSS and design sites with it.
>
> I'm told I should use CSS for the layout and not HTML Table
> (understandable).
>
> Is there a way to make a template and call every page inside of this? or
> does every file I create have to have all the info for the header,
> footer and side panel in it?
>
> Can some one shed some light on this.
>
> James.


James - have a search of this newsgroup for "SSI" and also checkout the
thread "The actual limitations and uses of HTML frames" round about
24/07/2004. Basically have it once but include it at runtime on the server.

Cheers


 
Reply With Quote
 
 
 
 
Sam Hughes
Guest
Posts: n/a
 
      08-10-2004
"RobM" <> wrote in
news:Rr2Sc.44371$:

>
> "James Smith" <> wrote in message
> news:4118b06d$0$16886$ u...
>> I'm trying to get into CSS and design sites with it.
>>
>> I'm told I should use CSS for the layout and not HTML Table
>> (understandable).
>>
>> Is there a way to make a template and call every page inside of this?
>> or does every file I create have to have all the info for the header,
>> footer and side panel in it?
>>
>> Can some one shed some light on this.
>>
>> James.

>
> James - have a search of this newsgroup for "SSI" and also checkout
> the thread "The actual limitations and uses of HTML frames" round
> about 24/07/2004. Basically have it once but include it at runtime on
> the server.


If you can't use server-side includes, you can also have a run at pre-
processing, the first section below:

<http://www.allmyfaqs.com/faq.pl?Include_one_file_in_another>


--
In a room with thirty-seven people, never have everybody shake each
other's hand.
 
Reply With Quote
 
James Smith
Guest
Posts: n/a
 
      08-10-2004
Sam Hughes wrote:

>"RobM" <> wrote in
>news:Rr2Sc.44371$:
>
>
>
>>"James Smith" <> wrote in message
>>news:4118b06d$0$16886$ .au...
>>
>>
>>>I'm trying to get into CSS and design sites with it.
>>>
>>>I'm told I should use CSS for the layout and not HTML Table
>>>(understandable).
>>>
>>>Is there a way to make a template and call every page inside of this?
>>>or does every file I create have to have all the info for the header,
>>>footer and side panel in it?
>>>
>>>Can some one shed some light on this.
>>>
>>>James.
>>>
>>>

>>James - have a search of this newsgroup for "SSI" and also checkout
>>the thread "The actual limitations and uses of HTML frames" round
>>about 24/07/2004. Basically have it once but include it at runtime on
>>the server.
>>
>>

>
>If you can't use server-side includes, you can also have a run at pre-
>processing, the first section below:
>
><http://www.allmyfaqs.com/faq.pl?Include_one_file_in_another>
>
>
>
>

Atm I'm useing php to do this, just wasn't sure if CSS had something
built in to do this.

James.
 
Reply With Quote
 
Mark Parnell
Guest
Posts: n/a
 
      08-10-2004
On Wed, 11 Aug 2004 09:03:44 +1000, James Smith
<> declared in alt.html:

> Atm I'm useing php to do this, just wasn't sure if CSS had something
> built in to do this.


No[1]. CSS is about presentation, not content.

[1] Well, OK - you could probably do it using the content property[2],
but Opera is the only browser that really supports it properly (Toby has
a couple of examples), and really it defeats the purpose of CSS -
separating the content from the presentation.

[2] http://www.w3.org/TR/CSS21/generate.html#content

--
Mark Parnell
http://www.clarkecomputers.com.au
"Never drink rum&coke whilst reading usenet" - rf 2004
 
Reply With Quote
 
Mark Parnell
Guest
Posts: n/a
 
      08-10-2004
On Wed, 11 Aug 2004 01:02:10 +0100, Spartanicus <>
declared in alt.html:

> Note that current CSS specs limit the usage to the :before and :after
> pseudo elements, Mozilla supports this.
>
> Opera 7 allows it without the :before and :after pseudo elements, it's
> however inappropriate to refer to this as "proper".


Fair enough. I've never really looked into it that closely. I just
remembered that Toby's examples only worked in Opera.

>>and really it defeats the purpose of CSS -
>>separating the content from the presentation.

>
> Depends on how it's used.


True, but in the case of the OP (including a "header, footer and side
panel" on every page), my statement above certainly applies.

--
Mark Parnell
http://www.clarkecomputers.com.au
"Never drink rum&coke whilst reading usenet" - rf 2004
 
Reply With Quote
 
Spartanicus
Guest
Posts: n/a
 
      08-11-2004
Mark Parnell <> wrote:

>[1] Well, OK - you could probably do it using the content property[2],
>but Opera is the only browser that really supports it properly


Note that current CSS specs limit the usage to the :before and :after
pseudo elements, Mozilla supports this.

Opera 7 allows it without the :before and :after pseudo elements, it's
however inappropriate to refer to this as "proper".

>and really it defeats the purpose of CSS -
>separating the content from the presentation.


Depends on how it's used.

--
Spartanicus
 
Reply With Quote
 
Toby Inkster
Guest
Posts: n/a
 
      08-11-2004
Spartanicus wrote:
> Mark Parnell wrote:
>
>> [1] Well, OK - you could probably do it using the content property[2],
>> but Opera is the only browser that really supports it properly

>
> Note that current CSS specs limit the usage to the :before and :after
> pseudo elements, Mozilla supports this.


And also to elements with 'display:marker', which Mozilla doesn't support
IIRC.

> Opera 7 allows it without the :before and :after pseudo elements, it's
> however inappropriate to refer to this as "proper".


And CSS 3 drafts allow 'content' to be specified for any element (pseudo
or real). Opera is just a little ahead of the game. (Mozilla also supports
various bits of CSS 3 -- just different bits.)

My "100% CSS Design" examples:

1. http://examples.tobyinkster.co.uk/10...sign/total.css
(Opera and Gecko only.)

2. http://examples.tobyinkster.co.uk/10...-design/total2
(Gecko only. Very cool. Look at the source code.)

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Reply With Quote
 
Spartanicus
Guest
Posts: n/a
 
      08-11-2004
Toby Inkster <> wrote:

>> Opera 7 allows it without the :before and :after pseudo elements, it's
>> however inappropriate to refer to this as "proper".

>
>And CSS 3 drafts allow 'content' to be specified for any element (pseudo
>or real). Opera is just a little ahead of the game.


Some CSS3 modules are nearing completion with REC status predicted for
Nov 04, the generated content module is not one of them, it's only at
first working draft status.

*If* Opera's implementation of the content property is modeled on the
CSS3 WD then it's rather premature.

--
Spartanicus
 
Reply With Quote
 
Toby Inkster
Guest
Posts: n/a
 
      08-11-2004
Spartanicus wrote:

> Some CSS3 modules are nearing completion with REC status predicted for
> Nov 04, the generated content module is not one of them, it's only at
> first working draft status.
>
> *If* Opera's implementation of the content property is modeled on the
> CSS3 WD then it's rather premature.


The Generated Content module is being edited by an Opera employee though,
so I guess they have some idea of where it's going.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Now Playing ~ ./moloko_-_the_time_is_now.ogg

 
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: a simple layout won't work in CSS liketofindoutwhy@gmail.com HTML 29 03-21-2008 03:46 PM
Css-Layout vs Table-Layout Habib HTML 15 06-20-2006 05:11 AM
Choosing Layout: Css-Layout or Table-Layout hpourfard@gmail.com ASP .Net 1 06-19-2006 10:06 AM
Table-based layout to CSS layout Guybrush Threepwood HTML 20 06-11-2006 11:12 AM
CSS Layout question - how to duplicate a table layout with CSS Eric ASP .Net 4 12-24-2004 04:54 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