PDA

View Full Version : Two Newbie CSS2 questions :D


Collado008
01-26-2004, 11:10 PM
im starting to play with CSS and i have two seemingly easy questions.

my first question is about doing script in CSS or cursive style fonts.

i tried like this and so far havent gotten it to work.

<span style="font-size:100%; font-family: script; color: silver;">
Daniel Collado
</span>
im basically just trying to get my signature in scriptive writing.


my second question is if anyone knows any good tutorials on doing tables in CSS and manipulating tables with CSS.

thanks in advance :p

agent002
01-27-2004, 09:31 AM
1. All people don't necessarily have a script font on their system. According to Opera, there are only sans, sans-serif, cursive, fantasy and monospace. So I think the best solution is to save the text as an image, then it will render as the same on all computers.

2. Here (http://www.bowdoin.edu/templates/tables.html) is one that I found on Google (http://www.google.com).

Aboveaverage
01-27-2004, 10:39 AM
and as for your 2nd question, try
glish.com (http://glish.com/css/)

Good luck; I've read over their stuff but haven't tried doing tables that way yet!!:eek:

Pegasus
01-27-2004, 04:33 PM
{ font-family: cursive; } Script is an HTML term, not CSS.

Peg

giz
01-27-2004, 04:37 PM
If you are replacing a table based layout with a CSS positioning layout then you can use <div>s and CSS for this.

If you have a table of words and numbers, a load of tabular data, then you really should continue using tables for this.



Tables are not deprecated. It is just that for layout and positioning, CSS is better, than maniplating the entoire page content in giant deeply-nested tables.

scoutt
01-27-2004, 04:43 PM
1) you can load a font in the css (external style sheet) and make it work for everyone.

font-family: "script";
src: url("http://site/script")
}
might not work in IE
I think.

2) you don't want to edit tables with css, they are weak when it comes to that, use div tags as you can do a lot with those.

Collado008
01-27-2004, 06:30 PM
IM using IE5 so maybe it wont work in my browswer i need to check at my school.

the reason i asked about CSS tables was for making better layouts, i use XHTML 1.0 table structure for data heavy stuff but my personal site is mainly for artwork and experimentation :P

im gonna check out the tutorial links included thanks a bunch :D

ok heres a link to my personal site that im working on.....
at the very bottom where my sig is "daniel collado"
thats where i wanted to use the cursive, it might just be that it doesnt display in IE5 maybe if some of you guys can look and see how it displays that will answer it for me.

tell me what ya see :P
::other than a link::
:P

http://www.timecities.com/Members/daniel74/

scoutt
01-27-2004, 10:54 PM
doesn't work cause you never loaded the font. you don't even use it.

and delete this

<?xml version="1.0" encoding="UTF-8"?>

Collado008
01-28-2004, 12:01 AM
<?xml version="1.0" encoding="UTF-8"?>

will it still validate if i take this section out of the DTD?

and is it a valide DTD without it?

this is the second time i've had it suggested to take it out, thats how we were taught at school, whats it do or not do if its taken out?

doesn't work cause you never loaded the font. you don't even use it.

im not really clear on what you mean here, can you elaborate?

scoutt
01-28-2004, 12:04 AM
yes it will validate, and it cause IE and mabe others to go into quirks mode.

Collado008
01-28-2004, 12:14 AM
whats a quirk mode?

scoutt
01-28-2004, 12:34 AM
bug mode, not compliant

Aboveaverage
01-30-2004, 08:30 AM
Collado, if all you want in the cursive font is your name, why not make a graphic with the font? That way everyone will see it just the way you want it to look.

edit: oops, agent already said that.

scoutt
01-30-2004, 09:11 AM
Originally posted by Collado008
[B
im not really clear on what you mean here, can you elaborate? [/B]
if you want to use the cursive font on your name you at least have to load it.

<span style="font-family: cursive;">your name</span>

but I see you got it already

Pegasus
01-30-2004, 02:10 PM
For what it's worth, he doesn't quite have it. I'm still seeing plain text, even though I have "Lucinda Handwriting" set as my "cursive" font.

Peg

scoutt
01-30-2004, 02:12 PM
he is using "script" as the font family on his name.

Pegasus
01-30-2004, 02:17 PM
<sigh> You know, I could adjust that until the cows came home and there's no way "script" information ever worked on my Mac. Not even the ones at school. Mind you, "fantasy" and "monospace" rarely worked, too. Must be a Mac-thing or something. :)

Peg

giz
01-31-2004, 04:55 PM
Is the font Lucinda or Lucida?

Check again.



Google has only 15 000 hits for the first one, but over 29 000 for Lucida.

Pegasus
01-31-2004, 05:09 PM
*lol* You're right, Giz. Beats me why I've always called it "Lucinda". It's "Lucida".

But, either way, it still doesn't show up on my pages. I chose it from the dropdown menu, so *my* spelling of it wouldn't matter.

Peg

giz
01-31-2004, 06:39 PM
Fair enough.



But I'm still amazed that over 33% of all websites out there also spelt it wrong too:

http://www.googlefight.com/cgi-bin/compare.pl?q1=Lucinda+Handwriting&q2=Lucida+Handwriting&B1=Make+a+fight%21&compare=1&langue=us



.