34 replies [Last post]
letsconnect
Offline
Regular
Last seen: 12 years 37 weeks ago
Joined: 2005-10-09
Posts: 18
Points: 0

I'm completely new to CSS and only encountered it as part of my new YaBB 2 forum, so please bear with me. The CSS style sheet contains font sizes for various text elements; I set the text for displayed messages to 13 px. This seems to display fine in most browsers; however, apparently it appears tiny in IE 6.0.2??

Is there any easy way I can have it display large enough for everyone to view without changing too much of the script? To view the source code, the site in question is http://www.dentalfearcentral.org/cgi-bin/yabb2/YaBB.pl

Any help would be greatly appreciated Laughing out loud !

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 5 years 42 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

absolute font size

Can you specify which class or ID is applied to the text in question?

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

letsconnect
Offline
Regular
Last seen: 12 years 37 weeks ago
Joined: 2005-10-09
Posts: 18
Points: 0

absolute font size

I don't know what "class" or "ID" means, but the piece of code I'm talking about is (I think):

.message {
font-size: 13px;
font-weight: normal;
font-style: normal;
text-decoration: none;
font-family: verdana, arial, helvetica, sans-serif;
color: #000000;
padding-top: 15px;
}

It's the px bit that seems to throw it on some IE 6.0.2 configurations, as far as I can make out?

n8gz4ez
n8gz4ez's picture
Offline
Leader
Last seen: 11 years 28 weeks ago
Timezone: GMT-6
Joined: 2005-06-13
Posts: 802
Points: 0

absolute font size

The pixel bit is fine.

.message is a class. It needs to correlate to the html like so:

<p class="message"></p>

However your page has no such class in the markup. So that style shouldn't have anything to do with your problem.

By the way, I just checked in IE6, and your font size looks normal to me :roll:

This is my big chance . . . yep, I blew it . . .

letsconnect
Offline
Regular
Last seen: 12 years 37 weeks ago
Joined: 2005-10-09
Posts: 18
Points: 0

absolute font size

Yeah, it just seems to be one person having this problem (but I've only had 3 or 4 people "test" the forum so far), but according to her, my ProBoards forum (which looks exactly the same in terms of message font size on my screen) has a much larger font size, so I can't figure out what's going on... she uses other forums as well which to me look much smaller font-wise, so I don't know what might be going on here??

I'm just wondering if pixels are really a big issue, or if the problem might be at her end. If it's just one person having this problem, I could live with it, but if more than, say, 5% of people have the same problem, I'd like to change the script.

n8gz4ez
n8gz4ez's picture
Offline
Leader
Last seen: 11 years 28 weeks ago
Timezone: GMT-6
Joined: 2005-06-13
Posts: 802
Points: 0

absolute font size

Perhaps your friend uses a larger screen resolution??? :?

This is my big chance . . . yep, I blew it . . .

letsconnect
Offline
Regular
Last seen: 12 years 37 weeks ago
Joined: 2005-10-09
Posts: 18
Points: 0

absolute font size

Apparently, she's tried to increase the displayed size in the View>Text Size menu (or whatever the equivalent in IE is - I'm using FireFox), but it didn't do very much.

Do you reckon this is an isolated problem, or should I change to em units?

n8gz4ez
n8gz4ez's picture
Offline
Leader
Last seen: 11 years 28 weeks ago
Timezone: GMT-6
Joined: 2005-06-13
Posts: 802
Points: 0

absolute font size

If using pixels for font-size, IE cannot adjust its size. Like anything, one or another has it's different drawbacks.

Here is a good article on the subject:

http://www.alistapart.com/articles/elastic

This is my big chance . . . yep, I blew it . . .

letsconnect
Offline
Regular
Last seen: 12 years 37 weeks ago
Joined: 2005-10-09
Posts: 18
Points: 0

absolute font size

Is it possible to adjust font size in IE when points rather than pixels are used in CSS? Are there any disadvantages to using points rather than pixels?

Thanks for the link - I didn't realize that ems had such shortcomings.

n8gz4ez
n8gz4ez's picture
Offline
Leader
Last seen: 11 years 28 weeks ago
Timezone: GMT-6
Joined: 2005-06-13
Posts: 802
Points: 0

absolute font size

Both pt and px are absolute sizes and cannot be adjusted in IE. You are better off using ems, which are relative, they are more accessible. . . . Wink

This is my big chance . . . yep, I blew it . . .

letsconnect
Offline
Regular
Last seen: 12 years 37 weeks ago
Joined: 2005-10-09
Posts: 18
Points: 0

absolute font size

I think I'll make a back-up of my forum tomorrow and then play around with ems... can you use ems in one class and pixels in other classes? I only want the ems for the actual message texts...

n8gz4ez
n8gz4ez's picture
Offline
Leader
Last seen: 11 years 28 weeks ago
Timezone: GMT-6
Joined: 2005-06-13
Posts: 802
Points: 0

absolute font size

There are no font-size segregation laws as far as I know. . . . Laughing out loud

This is my big chance . . . yep, I blew it . . .

letsconnect
Offline
Regular
Last seen: 12 years 37 weeks ago
Joined: 2005-10-09
Posts: 18
Points: 0

absolute font size

LOL - maybe that was a stupid question, but as I said, I'm totally new to this!

Anyway - many thanks for your help and advice - I'm sure I'll be back when I start redesigning my website in DreamWeaver! Laughing out loud

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 1 year 40 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

absolute font size

Hi

If you want:

Tidy Code
Cross Browser compatibility
Good CSS

Don't use Dreamweaver Crying

You will need to hand code your site, I use WebCoder (v5 is free, the new V2005 [now in final beta] will be shareware) from tsw.

Trevor

letsconnect
Offline
Regular
Last seen: 12 years 37 weeks ago
Joined: 2005-10-09
Posts: 18
Points: 0

absolute font size

I'm sure that hand coding is better, but considering I don't know how it's done (I have no knowledge whatsoever of XHTML or CSS), it's not really an option :?

ClevaTreva
ClevaTreva's picture
Offline
Guru
A hilly place, UK
Last seen: 1 year 40 weeks ago
A hilly place, UK
Joined: 2004-02-05
Posts: 2902
Points: 0

absolute font size

Hi

It may be you know nothing of it, but is IS easy.

Morevover, Webcoder has a QuickEdit option (like the WYSIWYG of DW), and you can flick to the code to see what it has done.

That way you get to learn.

As I said, it has tons of options, including dialogs for almost all bits of HTML (answer the questions and it makes the code).

Take a look at it, the download is free.

That's the way I learnt, and it didn't take long.

Trevor

n8gz4ez
n8gz4ez's picture
Offline
Leader
Last seen: 11 years 28 weeks ago
Timezone: GMT-6
Joined: 2005-06-13
Posts: 802
Points: 0

absolute font size

Another point, eventually you'd save more time learning to code by hand than troubleshooting bloated DW markup. Smile

This is my big chance . . . yep, I blew it . . .

letsconnect
Offline
Regular
Last seen: 12 years 37 weeks ago
Joined: 2005-10-09
Posts: 18
Points: 0

absolute font size

Well, the alternate stylesheet worked, anyway (I set the body to 90% and then set all the other font sizes to between 0.8em and 1.2em, which seems to do the trick). I couldn't get it right at 80% (the text specified as "body" was too small that way).

I'll look into this WebCoder thingy, hope there's an instruction manual for Dummies for it Tongue ... thanks for the tip! Though I'm not getting my hopes up too high - took me ages to even figure out Trellix, lol Wink ...

letsconnect
Offline
Regular
Last seen: 12 years 37 weeks ago
Joined: 2005-10-09
Posts: 18
Points: 0

absolute font size

Uhm, just had a look at the download page for WebCoder 5.0 and it says:

Requirements: Windows 95/98/Me/NT/2000/XP/2003 Server

I'm on Mac OSX?

n8gz4ez
n8gz4ez's picture
Offline
Leader
Last seen: 11 years 28 weeks ago
Timezone: GMT-6
Joined: 2005-06-13
Posts: 802
Points: 0

absolute font size

Taco Editor is free for OS X

http://tacosw.com/index.php

This is my big chance . . . yep, I blew it . . .

letsconnect
Offline
Regular
Last seen: 12 years 37 weeks ago
Joined: 2005-10-09
Posts: 18
Points: 0

absolute font size

BBEdit 8 looks very interesting - thanks for the tip! I'll download the demo... A friend mentioned that I should probably get a book which explains the basics of XHTML and CSS, what do you reckon? I had a look at the w3.org website, but they assume you have some sort of idea what you're up to. I know what I want the website to look like and how it will be structured, but I don't even know basic html... where to start ?? Tongue

letsconnect
Offline
Regular
Last seen: 12 years 37 weeks ago
Joined: 2005-10-09
Posts: 18
Points: 0

absolute font size

n8gz4ez wrote:
Taco Editor is free for OS X

http://tacosw.com/index.php

It doesn't fully support XHTML though, which I have been told is the way of the future? I don't mind spending some money on this... as long as it's not going to bankrupt me Tongue

n8gz4ez
n8gz4ez's picture
Offline
Leader
Last seen: 11 years 28 weeks ago
Timezone: GMT-6
Joined: 2005-06-13
Posts: 802
Points: 0

absolute font size

letsconnect wrote:
It doesn't fully support XHTML though, which I have been told is the way of the future?


It does. HTML is used very generically in this context.

Sometimes the best software is free.

Taco HTML Edit wrote:
Does Taco HTML Edit support XHTML?
The answer to this question is both "yes" and "no". You should find that almost all of Taco HTML Edit's features work well with XHTML documents. However, Taco HTML Edit's built-in syntax checker is not as strict as the XHTML specification requires. The syntax checker does recognize self-closing tags when looking at tag structure, but it will not display an error message if certain tags like <br> are not closed.


A lot of text editors do not even have a syntax checker, this is a pretty good bonus feature, even FF's checker is works differently from the W3C's validation. . . .

There are a slew of text editors out there, and usually people are pretty bias to their own. Wink

This is my big chance . . . yep, I blew it . . .

letsconnect
Offline
Regular
Last seen: 12 years 37 weeks ago
Joined: 2005-10-09
Posts: 18
Points: 0

absolute font size

In any event, one could just run it through the XHTML validator and then figure out if anything is wrong... I like the idea of the "live preview" feature in Taco... maybe I'll give it a shot?

I take it that, if a text editor is discontinued, one can simply import the existing html script into any other text editor?

n8gz4ez
n8gz4ez's picture
Offline
Leader
Last seen: 11 years 28 weeks ago
Timezone: GMT-6
Joined: 2005-06-13
Posts: 802
Points: 0

absolute font size

It's a step in the right direction. I have probably tried no less than 20 different text editors, Laughing out loud I have yet to find a perfect one. What really is most important is what they can create. Even the most basic text editor can get the same job done as one with a hundred features.

This is my big chance . . . yep, I blew it . . .

letsconnect
Offline
Regular
Last seen: 12 years 37 weeks ago
Joined: 2005-10-09
Posts: 18
Points: 0

absolute font size

I'll have to try it out and see what happens... it's a bit daunting when you haven't got a clue and don't know anyone who could show you IRL... then again, two weeks ago I didn't even know what an FTP client is Wink

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 5 years 42 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

absolute font size

n8gz4ez wrote:
It's a step in the right direction. I have probably tried no less than 20 different text editors, Laughing out loud I have yet to find a perfect one.

Same here. I've tried a few different ones out and all of them have a cool feature that the others don't have but none of them have all the things I'd like in the one application.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

wolfcry911
wolfcry911's picture
Offline
Guru
MA, USA
Last seen: 6 years 23 weeks ago
MA, USA
Timezone: GMT-5
Joined: 2004-09-01
Posts: 3224
Points: 237

absolute font size

TextWrangler is BBEdit's sibling, and it's free.

letsconnect
Offline
Regular
Last seen: 12 years 37 weeks ago
Joined: 2005-10-09
Posts: 18
Points: 0

absolute font size

Taco sounds better to me because of the preview function, which would be very handy if you're new to html (I would think...)

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 6 hours 5 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9761
Points: 3843

absolute font size

Don't get too hung up on features. Any text editor will do the job. —this from a guy who uses Emacs, which has every feature ever thought of :D—

Also, don't bother with a 'preview' function. Always do your checking in a browser, preferably Firefox. The procedure is too simple to be a problem; save, switch to a browser and refresh. In PCs, that's ctl-s, alt-tab, ctl-r. Hit alt-tab to go back to the editor. I imagine Mac in an X-window is very similar.

This isn't rocket science. It's simply content that's been marked up.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

wolfcry911
wolfcry911's picture
Offline
Guru
MA, USA
Last seen: 6 years 23 weeks ago
MA, USA
Timezone: GMT-5
Joined: 2004-09-01
Posts: 3224
Points: 237

absolute font size

kk5st wrote:

Also, don't bother with a 'preview' function. Always do your checking in a browser, preferably Firefox. The procedure is too simple to be a problem; save, switch to a browser and refresh. In PCs, that's ctl-s, alt-tab, ctl-r. Hit alt-tab to go back to the editor. I imagine Mac in an X-window is very similar.

Yes, very similiar Smile

cmd-s, cmd tab, cmd-r, and cmd tab to go back. Cool

ragamuffin
ragamuffin's picture
Offline
Leader
Iowa
Last seen: 11 years 21 weeks ago
Iowa
Joined: 2005-06-02
Posts: 691
Points: 0

absolute font size

I figured that I would throw my two cents in...as far as the Taco Editor...that is my top choice when I am on my Mac. Overall, it has everything that I need to write XHTML. Dreamweaver has been sitting on the shelf since I found Taco...I have not tried TextWrangler, but heard it is just as good as BBEdit.

...I need to throw this in too...on Windows, Notepad2 is pretty nice. Smile

- r

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 20 weeks 2 days ago
Joined: 2004-06-30
Posts: 9668
Points: 801

absolute font size

ragamuffin wrote:

...I need to throw this in too...on Windows, Notepad2 is pretty nice. Smile

- r

it jolly well is, isn't it Laughing out loud Ever since I found it (and noticed it's a standalone exe that can run on a USB drive) I've used nothing else.

Notepad2 ftw indeed!

Verschwindende wrote:
  • CSS doesn't make pies

ragamuffin
ragamuffin's picture
Offline
Leader
Iowa
Last seen: 11 years 21 weeks ago
Iowa
Joined: 2005-06-02
Posts: 691
Points: 0

absolute font size

Quote:
it jolly well is, isn't it Very Happy Ever since I found it (and noticed it's a standalone exe that can run on a USB drive) I've used nothing else.

nice to know. Laughing out loud thanks!

...Can that be done with Taco Edit too :?:

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 20 weeks 2 days ago
Joined: 2004-06-30
Posts: 9668
Points: 801

absolute font size

what, running on a USB drive? No idea, never used it (See above post Laughing out loud :D Laughing out loud)

Verschwindende wrote:
  • CSS doesn't make pies