Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Css? hmmmm

Reply
Thread Tools

Css? hmmmm

 
 
Jom
Guest
Posts: n/a
 
      06-11-2004
Hello.

Sorry for perhaps sending this to the wrong news group.

I am relatively new to HTML so I guess this question is a FAQ... I'm sorry
about that too. But searching Dejanews didn't do any good so...

What I have is a very basic website but on all of the pages in it I want the
same header with 2 pictures (one with link) and 2 textlinks to appear. In
my head I picture this header as a table or Div.

I know that CSS can help me with font and table structures, but can I use it
to create a table or Div as described abowe? Can a CSS file contain a
string (or strings) of text so that when I change the CSS, all of my pages
do as well? I really dislike "hardcoding" this into each and every page in
my site so I really hope that there are alternatives. I know that PHP or
ASP are, but I don't even know what the letters stand for...

I am not asking for a complete answer for my question, but a pointer to some
tutorial or good web sides would be helpful... All I have is Webmonkey.com,
a good site but a bit limited.

Thank you for helping me out here, I would really appreciate it.
c",)

Jon Oskar


 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      06-11-2004
Jom wrote:

> What I have is a very basic website but on all of the pages in it I want
> the same header with 2 pictures (one with link) and 2 textlinks to appear.
> In my head I picture this header as a table or Div.
>
> I know that CSS can help me with font and table structures


No it can't. It can help you with presentation. _Structure_ is the job of
the markup language.

> , but can I use it
> to create a table or Div as described abowe? Can a CSS file contain a
> string (or strings) of text so that when I change the CSS, all of my pages
> do as well?


No, CSS can include some short strings (unsupported by MSIE), but it can't
do that level of content.

> I really dislike "hardcoding" this into each and every page
> in
> my site so I really hope that there are alternatives. I know that PHP or
> ASP are, but I don't even know what the letters stand for...


http://www.allmyfaqs.com/faq.pl?Incl...ile_in_another
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
 
 
 
dmsc17454_2
Guest
Posts: n/a
 
      06-11-2004
> What I have is a very basic website but on all of the pages in it I want
the
> same header with 2 pictures (one with link) and 2 textlinks to appear. In
> my head I picture this header as a table or Div.


Use an "include". http://www.w3schools.com/php/php_includes.asp

> CSS file contain a
> string (or strings) of text so that when I change the CSS, all of my pages
> do as well? I really dislike "hardcoding" this into each and every page

in
> my site so I really hope that there are alternatives. I know that PHP or
> ASP are, but I don't even know what the letters stand for...


What do you mean "text"? Includes could include text into your site.

You can change the font colours/tables etc throughout your site using a CSS
stylesheet - http://www.w3schools.com/css/default.asp


 
Reply With Quote
 
Weyoun the Dancing Borg
Guest
Posts: n/a
 
      06-11-2004
Jom wrote:

> Hello.
>
> Sorry for perhaps sending this to the wrong news group.
>
> I am relatively new to HTML so I guess this question is a FAQ... I'm sorry
> about that too. But searching Dejanews didn't do any good so...
>
> What I have is a very basic website but on all of the pages in it I want the
> same header with 2 pictures (one with link) and 2 textlinks to appear. In
> my head I picture this header as a table or Div.
>
> I know that CSS can help me with font and table structures, but can I use it
> to create a table or Div as described abowe? Can a CSS file contain a
> string (or strings) of text so that when I change the CSS, all of my pages
> do as well? I really dislike "hardcoding" this into each and every page in
> my site so I really hope that there are alternatives. I know that PHP or
> ASP are, but I don't even know what the letters stand for...
>
> I am not asking for a complete answer for my question, but a pointer to some
> tutorial or good web sides would be helpful... All I have is Webmonkey.com,
> a good site but a bit limited.
>
> Thank you for helping me out here, I would really appreciate it.
> c",)
>
> Jon Oskar
>
>



As the others have suggested, use an "Include". This can easily be done
with PHP or ASP. don't be scared by that at all - you dont need to learn
an enturely new language - you just need a web hoster that supports one
of them.

Any questions please feel free to reply back

--

Quiet, Pinky; I'm pondering.
_ _
/~\\ \ //~\
| \\ \ // |
[ || || ]
] Y || || Y [
| \_|l,------.l|_/ |
| >' `< |
\ (/~`--____--'~\) /
`-_>-__________-<_-'
/(_#(__)#_)\
\___/__\___/
/__`--'__\
/\(__,>-~~ __)
/\//\\( `--~~ )
'\/ <^\ /^>
_\ >-__-< /_
(___\ /___)
 
Reply With Quote
 
m
Guest
Posts: n/a
 
      06-11-2004
Jom wrote:

> Hello.
>
> Sorry for perhaps sending this to the wrong news group.
>
> I am relatively new to HTML so I guess this question is a FAQ... I'm
> sorry
> about that too. But searching Dejanews didn't do any good so...
>
> What I have is a very basic website but on all of the pages in it I want
> the
> same header with 2 pictures (one with link) and 2 textlinks to appear. In
> my head I picture this header as a table or Div.
>
> I know that CSS can help me with font and table structures, but can I use
> it
> to create a table or Div as described abowe? Can a CSS file contain a
> string (or strings) of text so that when I change the CSS, all of my pages
> do as well? I really dislike "hardcoding" this into each and every page
> in
> my site so I really hope that there are alternatives. I know that PHP or
> ASP are, but I don't even know what the letters stand for...
>
> I am not asking for a complete answer for my question, but a pointer to
> some
> tutorial or good web sides would be helpful... All I have is
> Webmonkey.com, a good site but a bit limited.
>
> Thank you for helping me out here, I would really appreciate it.
> c",)
>
> Jon Oskar


You can preprocess it using the download at
http://www.mbstevens.com/preprocessor/index.html
(The tiny mcat.pl program from that download will do what you need.
You'll need Perl installed, too, of course.)




 
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
Hmmmm.... kombi45@yahoo.com Digital Photography 6 07-01-2006 06:59 PM
hmmmm =?Utf-8?B?cm9kY2hhcg==?= ASP .Net 8 10-06-2005 03:33 PM
HMMMM, GUESS WHO'S BACK ??? Annika1980 Digital Photography 21 08-07-2005 02:49 PM
Hmmmm, most interesting... Mick Sterbs Digital Photography 2 06-29-2004 02:14 AM
hmmmm ñKs Computer Support 2 12-06-2003 07:47 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