FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Probably a dumb question but..

 


Diablosblizz
This will probably be a dumb question but.. here it goes anyways:

Lets say I want a custom font on my site, like in a image, but my site is in css, I have a font I want, but I don't want to make a image.

I want to use CSS to change the font from the normal font (Verdana, Arial, Helvetica, sans-serif) to a font that is called Alexis...

Would i change my CSS from Verdana to Alexis? But then where do I put my font file?

This is very confusing, and I am using Frihost for hosting. Please help, thank you!
ThePolemistis
Diablosblizz wrote:
This will probably be a dumb question but.. here it goes anyways:

Lets say I want a custom font on my site, like in a image, but my site is in css, I have a font I want, but I don't want to make a image.

I want to use CSS to change the font from the normal font (Verdana, Arial, Helvetica, sans-serif) to a font that is called Alexis...

Would i change my CSS from Verdana to Alexis? But then where do I put my font file?

This is very confusing, and I am using Frihost for hosting. Please help, thank you!


People will only see the alexis font if they have it installed on their system. The best u can do if u really want others to view the website how u intended, is to hav alink for people to downlaod the alexis font if they dont have it.
Another good thing to do is thru CSS make primary font Alexis, if they dont have that then choose a secondary font such as verdana.
alalex
yep, i find it way easier to use an image, unless you want to do your whole web in that font. Although i would never design a web in a font that people may not have. Wink
Diablosblizz
Alright I don't want to create another topic, cause its another dumb question..


I can't seem to align my text.

Heres my css for my text:
Code:

#right
{
text-align: right;
}


Because where I want to put my text is in a div, I don't know how to do it. I tried <span class="right"> But nothing happened.

Another noob question, but what do I do?
xanarulz
either you can create a .para for it if you plan to use it multiple times, but if you plan to use it just once just do an inline style sheet

IE:

Code:
<div style="font-align: right">
cr3ativ3
To your second question a simple error in your css. You used class="" in your span tag in this case you need to address the style as .right instead of #right.

So it would be:

Code:

.right
{
text-align: right;
}


Instead you could change your HTML and then it would be:

Code:

#right
{
text-align: right;
}


Code:

<span id="right"></span>
Azmo
Diablosblizz wrote:
Alright I don't want to create another topic, cause its another dumb question..


I can't seem to align my text.

Heres my css for my text:
Code:

#right
{
text-align: right;
}


Because where I want to put my text is in a div, I don't know how to do it. I tried <span class="right"> But nothing happened.

Another noob question, but what do I do?


did u try google any of ur questions? cause it's so easy to answer and google would have helped u in just 1 minute..

anyways.. text-aling do work.. BUT not in the div tag.. u must put in in ur <p> tag..

Code:
#yourdiv {
my stats;
my stats;
my stats;
}

#yourdiv p {
text-aling:right;
}


so ur html

Code:
<div id="yourdiv">
<p>my text is to the right</p>
</div>


Very Happy
Diablosblizz
This did not work for me, just took it out of the DIV, and then it double spaced it from the DIV.

Heres my CSS:

Code:

#Content2
{
   margin-left: 190px;
   margin-right: 190px;
   margin-bottom: 20px;
   border: 2px solid #990000;
   border-top: none;
   height: 15px;
}

#Content2 p
{
   text-align: right;
}



Heres my HTML:
Code:
<div id="Content2">&copy 2007 Free Fonts Database <p>Hello</p>
         </div>



Im trying to have my copyright on one side, and the rest (Hello) on the other side. For me it does not work.
welshsteve
Here you go. Try this.

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>

   <title>Test</title>

   <meta http-equiv="Content-Type" content="text/html; charset=shift_jis" />

<style type="text/css">
<!-- HIDE FROM OLDER BROWSERS
#content2
{
   margin-left: 190px;
   margin-right: 190px;
   margin-bottom: 20px;
   border: 2px solid #990000;
   border-top: none;
   height: 25px;
   padding: 5px;
}

.content2_left
{
        float: left;
}

.content2_right
{
        float: right;
}

#clearfloats
{
        clear:both;
}
-->
</style>
</head>
<body>
<div id="content2">
        <div class="content2_left">&copy; 2007 Free Fonts Database</div>
        <div class="content2_right">Right hand side</div>
 </div>
 <div id="clearfloats"></div>
 </html>
       
Azmo
Diablosblizz wrote:
This did not work for me, just took it out of the DIV, and then it double spaced it from the DIV.

Heres my CSS:

Code:

#Content2
{
   margin-left: 190px;
   margin-right: 190px;
   margin-bottom: 20px;
   border: 2px solid #990000;
   border-top: none;
   height: 15px;
}

#Content2 p
{
   text-align: right;
}



Heres my HTML:
Code:
<div id="Content2">&copy 2007 Free Fonts Database <p>Hello</p>
         </div>



Im trying to have my copyright on one side, and the rest (Hello) on the other side. For me it does not work.


You are right, that doesnt work.. cause css do not yet suport text in the same div and on the same row, to have different aligns.. no align = auto left.. if u place a <br /> before ur <p>HELLO</p> it will work..

now IF you wanna do it the way you have wrote it in ur post.. u should remove text-align:right; from ur css.. and instead put margin-left: 123px;
ofc u change 123px to whatever suits ur needs best.. should work..
Related topics

Kinda dumb question regarding DNS
Another dumb question <.<
dumb nu-b question on phpmyadmin
Antimatter
phpBB 3 RC5 very basic/n00b question

Eh. Dumb question probably: whats the $ for?
A use for Ajax?
My personal website!
Batman Begins
Do you like being grounded..

Which is better, DS or PSP?
php.ini
SQL Disk usage?
how much i s your house?
Absence
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.