I'm looking for a good CSS tutorial site

N

Neal


Because inline styles cannot be applied to similar situations elsewhere.
Most everything we do in a well-designed site is repeated somewhere else.

If we use inline style for something which we want to happen in more than
one place, maintenance is no better than old-skool presentational HTML. If
we want to alter it, we must go into each document and change it.

If we do everything externally in a stylesheet, we never have to go to any
other place but the stylesheet to make style changes.

Back on my PHP kick, I'm loving how I can now alter the whole navigational
structure of my site in one document. Sure beats changing every damned
page.

If the style truly will never be used again, then inline is fine. I did
that recently when adding a "Look At Me" ad solicitation on a site. Since
I'd never repeat that except on index, I did it inline.

Anything more permanent than that, stylesheet all the way, baby.
 
S

Spartanicus

Neal said:
Back on my PHP kick, I'm loving how I can now alter the whole navigational
structure of my site in one document. Sure beats changing every damned
page.

That suggests that your editor has a poor search and replace function.
 
R

rf

Neal wrote
Because inline styles cannot be applied to similar situations elsewhere.
Most everything we do in a well-designed site is repeated somewhere else.

You seem to assume that a particular style *must*, or *should* be used
elsewhere or *will* be changed. Such is not the case. I can think of many
situations where there would be no "similar" situation elsewhere, or where a
style will never ever change.

I have a site that uses a few tables. Every table is <table
style="border-collapse: collapse"...> Why clutter up the CSS file with
things that never change.
If the style truly will never be used again, or changed
then inline is fine.

Exactly. This happens quite often. "almost never" is a little too strong.
Lets say "usually don't".
 
R

rf

Spartanicus said:
That suggests that your editor has a poor search and replace function.

That suggests that you know nothing about what Neal might be doing with PHP.

The .php file that contains the navigation changes what it produces
depending on which page includes it. For example, the nav entry for the
current page is not a link, it is plain text. An editor with good
search/replace can not do this.
 
S

Spartanicus

rf said:
That suggests that you know nothing about what Neal might be doing with PHP.

The .php file that contains the navigation changes what it produces
depending on which page includes it. For example, the nav entry for the
current page is not a link, it is plain text. An editor with good
search/replace can not do this.

Sure it can, by using a bit of scripting, or perhaps even with regular
expressions.
 
R

rf

Spartanicus wrote
PHP:
[QUOTE]
That suggests that you know nothing about what Neal might be doing with PHP.

The .php file that contains the navigation changes what it produces
depending on which page includes it. For example, the nav entry for the
current page is not a link, it is plain text. An editor with good
search/replace can not do this.[/QUOTE]

Sure it can, by using a bit of scripting, or perhaps even with regular
expressions.[/QUOTE]

Ah, yes, by using a little, say, programming, er, sorry, scripting? Just
like using a little PHP :-)
 
S

Spartanicus

rf said:
Ah, yes, by using a little, say, programming, er, sorry, scripting? Just
like using a little PHP :)

I'm continuously amazed at how little even experienced people know about
what you can do with an editor. Using server side scripting for
something which is not dynamic makes no sense.
 
L

Lauri Raittila

Spartanicus wrote;
I'm continuously amazed at how little even experienced people know about
what you can do with an editor.

Well, within good editor, it is possible to do practically anything. The
questions is, what to do with editor, and what not. I don't play tetris¹
or surf the net² or run web server³ on my editor just because it is
possible.
Using server side scripting for
something which is not dynamic makes no sense.

As I just said in Finnish forum:
Dynamic webpage makes sence, when changes are that some page will never
be shown.

I got the idea on site I maintain, whiout server side stuff, as I run my
site though reprosessor once in a while. There is lots of pages that are
likely never be visited between the times I run the prosessor...

[1] http://www.emacswiki.org/cgi-bin/wiki/TetrisMode
[2] http://www.emacswiki.org/cgi-bin/wiki/EmacsWebBrowser
http://www.emacswiki.org/cgi-bin/wiki/WThreeM
http://www.emacswiki.org/cgi-bin/wiki/EmacsWebBrowser
[3] http://www.emacswiki.org/cgi-bin/wiki/HttpServer
 
N

Neal


We're forgetting one thing - I'm still programming-stoopid. I'm lucky to
be able to do a little PHP. I'm just some dumb musician who likes to play
with web pages. I don't get a kick out of writing scripts to make my
editor fly me to the Sun. To me, that's difficult.
 
N

Neal

The .php file that contains the navigation changes what it produces
depending on which page includes it. For example, the nav entry for the
current page is not a link, it is plain text. An editor with good
search/replace can not do this.

In fact, I improved upon it. The site has seven "global" navigation
"buttons". When you're in some of those areas, there's a supplemental
navigation for that section.

When you're on the page the button refers to, it's unlinked and matches
the content bg color.

When you're not on that page, but you are in that section, the button is
colored slightly differently.

When you're not on that page nor in that section, it's a normal clickable
link with normal color.

PHP is fun. Wheee.
 
S

Spartanicus

Neal said:
I'm just some dumb musician who likes to play
with web pages.

Everyone knows that musicians get all the girls, the rest of us dislike
musicians.
I don't get a kick out of writing scripts to make my
editor fly me to the Sun. To me, that's difficult.

Don't listen to Icarus, he was a drummer who thought that he was a
musician, he couldn't get any girls and he held a grudge warning people
that writing client side scripts is more difficult than writing server
side scripts.
 
G

George

You sure quoted them all real nice.


I'll wager he's tried them all. The programs, too. ;)


Aw, shucks, I'm just doing my job. Where's that check?


You got the mother lode, bud. It's all up to you now.

Neal,

I didn't think my original post would cause such a long list of
responses.

Now, I'm interested in php, but find that the web space I have is not
configured for php.

Any idea on how I can get some php web space w i t h o u t having
to register for a domain, and all that?

There are some things I'd like to try with PHP, even though I just now
broke into CSS.

Thanks, George
 
N

Neal

Any idea on how I can get some php web space w i t h o u t having
to register for a domain, and all that?

You can install PHP on your computer. See php.net for more on that. I
really don't know how it's done, but I know it can be.
 
R

Robert Frost-Bridges

George wrote:
[...]
Any idea on how I can get some php web space w i t h o u t having
to register for a domain, and all that?

There are some things I'd like to try with PHP, even though I just now
broke into CSS.

http://sourceforge.net/projects/phptriad

is quite a good place to start. It will set up a complete environment
for you locally. It's been a while since I used it but I found it very
useful for playing around with php when I did.
 
A

Alan Wyatt

Hi George

I use Xampp, which gives me a php server on my computer (as well as
other open source goodies too). It takes a bit of time to grasp what's
what for a newbie, but worth it. You can try out php (and css) without
uploading. Handy way to learn as you go.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top