fox: my left eye.  "ceci n'est pas une fox." (Default)
fox ([personal profile] fox) wrote2007-05-18 12:21 am
Entry tags:

i win?

Teaching myself CSS = not so hard, really.

Big overhaul of the website under way.  At the moment, only my index page (not the whole site's, I mean, and not any of the other areas') and "Best Man" are linked to the new style sheets; the rest is the old blue-on-blue stuff.  The index page is -- we're going to call it "in progress", okay.  But do we like the new look for the story page?  Someone want to pop over there and tell me how it looks?  Readability okay?  I feel like the font might be a little small, but on the other hand it might be my screen resolution.

[identity profile] flt.livejournal.com 2007-05-18 11:21 am (UTC)(link)
I can see that some might find the font size a bit small - but it was quite readable for me. Speaking which was also a good read!

I'm pretty low fuss, but it looked good to me :-)

ext_3579: I'm still not watching supernatural. (Default)

[identity profile] the-star-fish.livejournal.com 2007-05-18 12:33 pm (UTC)(link)
Nice and clean, very easy to read. And yes, a bit small on the font, but one ctrl+ took care of it perfectly, and I have a fit-everything-you-can-on-one-screen screen res (1024x768), so ...

I really need to learn how to do this CSS thingy.
ext_22299: (Default)

[identity profile] wishwords.livejournal.com 2007-05-18 01:24 pm (UTC)(link)
I found it very easy to read. You could make the font a teeny bit bigger but not much.
thalia: photo of Chicago skyline (Default)

[personal profile] thalia 2007-05-18 01:34 pm (UTC)(link)
Looks good to me!

The more you use CSS, the more you'll love it. It's incredible how much easier it makes updating a site.

[identity profile] darthfox.livejournal.com 2007-05-18 01:40 pm (UTC)(link)
What I want even more is a template. I mean, I know I could make one, right, save all the whatnot and have a bit where I put "the text goes here!" and save-as; but a) even that's a bunch of work, on account of having to code the text that goes there [g]; and b) it doesn't solve what at the moment is my big problem, which is how to change the contact information on every page. Is there a way to make CSS apply the same footer to each page? Probably not, right, because after all it's not Cascading Content Sheets. Rar.
thalia: photo of Chicago skyline (Default)

[personal profile] thalia 2007-05-18 02:13 pm (UTC)(link)
Two ideas:

I use Arachnophilia as my HTML editor, which can do a global change in all open documents--like every single page on the site. It's a godsend sometimes.

And if your server supports server-side includes (SSI), you can use an include statement to pull in the same info on every page. You'd still have to update everything once, but after that you'd only have to change one file.

[identity profile] darthfox.livejournal.com 2007-05-18 02:20 pm (UTC)(link)
[perk] Tell me more about this SSI thing. (I don't use an editor, is the thing, I just code by hand. Which, yes, is why I'm loving the CSS. [g])
thalia: photo of Chicago skyline (Default)

[personal profile] thalia 2007-05-18 02:32 pm (UTC)(link)
You really might like Arachnophilia, then--it's not wysiwyg, but it has macros and uses color-coding to make hand-coding HTML way easier.

SSI: You have to check with your host if they support it and how it works. Sometimes you have to use .shtml instead of .html. Sometimes you have to put something in a .htaccess file. For Minx's site, I have these two lines in .htaccess:
AddType text/html .shtml .html .htm
AddHandler server-parsed .shtml .html .htm
... and that tells the server to look for SSI in any type of file.

The SSI itself is very straightforward. All the files on Minx's site include the line
<!--#include file="sidemenu.html" -->

There's a file called sidemenu.html that includes the html for the side menu (duh!). When a page is loaded, the server sees the include line and replaces it with the contents of sidemenu.html. So if you're looking at a page on her site and look at the source, you'd see the actual html, not the include statement.

Does that help? Let me know if you have more questions--I find SSI way more manageable than trying to use php or perl or whatever. SSI can do other things, too, like automatically display the current date, but I've never bothered with that.