Jump to content

  • Free consultations and support
  • Live chatClick Here for Live Chat
  • Call ico 1888-906-1888
    Phone support: Open

    Ready for your call :)

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

    Phone support: Closed

    We are back in: 1h 20m

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams


Easy Text Editing Using Css


  • Please log in to reply
&nsbp;

#1 karl472001

karl472001

    Apprentice Designer

  • Designer
  • 352 posts

Posted 07 November 2003 - 12:28 AM

Make a new file and name it "styles.css"

.maintext {
font-family: Verdana;
font-size: 12px;
font-weight: bold;
color: #0076A3;
}


Make your HTML file:

Put this in the head: <link rel="stylesheet" href="styles.css" type="text/css" />

When putting in fonts use this format:

<font class="maintext">Hello World!</a>


You can put more styles in the "styles.css". Sorry for it not being too detailed.

#2 cai

cai

    Apprentice Designer

  • Designer
  • 11 posts

Posted 15 November 2003 - 04:18 AM

Additionally, using
body {
  font-family: arial, verdana;
  font-size: 12px;
}
will change it for the entire body, so you don't have to use a <font> tag to style every section. If you're doing it to all <td>s, you can also use ".td" in place of "body" above.

#3 karl472001

karl472001

    Apprentice Designer

  • Designer
  • 352 posts

Posted 15 November 2003 - 11:42 AM

Well, if you want it all the same text in your whole site like that, you don't even need css.

#4 kfreak

kfreak

    Apprentice Designer

  • Designer
  • 33 posts

Posted 15 November 2003 - 03:23 PM

Or something I use a lot is something like

td.header5 {
	background-image: url('images/header_5.gif');
	background-repeat: no-repeat;
	height: 48px;
	width: 44px;
}

~> Juped IRC Network (www.juped.com / irc.juped.com)
~> www.devrand.com

#5 miao

miao

    Apprentice Designer

  • Designer
  • 44 posts

Posted 19 November 2003 - 11:47 AM

Then with CSS you can position text and image exactly where you want without using table and with the power of the levels.

Toghether with Php or JS you can make a site that can change layouts on the basis of the user's preferences.

Or just to change the text dimension for people with eyes problems.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users