HighDots Forums  

Table Header

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Table Header in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shapper
 
Posts: n/a

Default Table Header - 11-14-2007 , 05:08 PM






Hello,

I created a table and applied an image as background in table header:
..MyTable th
{
font: normal 0.7em verdana,arial,helvetica,sans-serif;
background: url(Images/Header.jpg) repeat-x 0px 0px;
padding: 4px;
}

The problem is when I click CTRL + to increase the font size the
background does not fill all header.
The image is a gradient from Top to Down.

Is this possible to solve this?

Is even a good idea to use an image as background in a table header?

Thanks,
Miguel


Reply With Quote
  #2  
Old   
dorayme
 
Posts: n/a

Default Re: Table Header - 11-14-2007 , 05:58 PM






In article
<1195081728.363420.201330 (AT) o80g2000hse (DOT) googlegroups.com>,
shapper <mdmoura (AT) gmail (DOT) com> wrote:

Quote:
Hello,

I created a table and applied an image as background in table header:
.MyTable th
{
font: normal 0.7em verdana,arial,helvetica,sans-serif;
background: url(Images/Header.jpg) repeat-x 0px 0px;
padding: 4px;
}

The problem is when I click CTRL + to increase the font size the
background does not fill all header.
The image is a gradient from Top to Down.

Is this possible to solve this?

Is even a good idea to use an image as background in a table header?

It is ok, no particular badness about it. Perhaps you can look
at the following to get an idea of what to do:

http://tinyurl.com/yqndfb

You need to prepare the image correctly and choose the right
direction and get your markup right. It is hard to know your
problem since you do not supply url. But the above I whipped up
for you might help?

--
dorayme


Reply With Quote
  #3  
Old   
shapper
 
Posts: n/a

Default Re: Table Header - 11-14-2007 , 09:19 PM



On Nov 15, 12:42 am, "Beauregard T. Shagnasty"
<a.nony.m... (AT) example (DOT) invalid> wrote:
Quote:
shapper wrote:
I created a table and applied an image as background in table header:
.MyTable th
{
font: normal 0.7em verdana,arial,helvetica,sans-serif;

.................^^^ ^^^^^^^

Read this:http://k75s.home.att.net/fontsize.html

--
-bts
-Motorcycles defy gravity; cars just suck
Hi,

I read the article and in fact I was reading a few things about font
size a few weeks ago.
My conclusion was that I should use something like:
body
{
font: normal 0.7em verdana,arial,helvetica,sans-serif;
}

And then everything relative to it like:
h1 {font: normal 120% verdana,arial,helvetica,sans-serif;}
..note {font: normal 70% verdana,arial,helvetica,sans-serif;}

Am I thinking wrong?

Thanks,
Miguel


Reply With Quote
  #4  
Old   
dorayme
 
Posts: n/a

Default Re: Table Header - 11-14-2007 , 09:23 PM



In article
<50f2c0f0-4e65-4d2b-9c2d-f6cbeb754ecd (AT) d50g2000hsf (DOT) googlegroups.co
m>,
shapper <mdmoura (AT) gmail (DOT) com> wrote:

Quote:
I read the article and in fact I was reading a few things about font
size a few weeks ago.
My conclusion was that I should use something like:
body
{
font: normal 0.7em verdana,arial,helvetica,sans-serif;
}

And then everything relative to it like:
h1 {font: normal 120% verdana,arial,helvetica,sans-serif;}
.note {font: normal 70% verdana,arial,helvetica,sans-serif;}

Am I thinking wrong?
You are starting too small. .7em is too tiny to set for body
text. But you are right that everything else is relative to that
under normal conditions.

--
dorayme


Reply With Quote
  #5  
Old   
shapper
 
Posts: n/a

Default Re: Table Header - 11-14-2007 , 09:37 PM



On Nov 15, 3:23 am, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote:
Quote:
In article
50f2c0f0-4e65-4d2b-9c2d-f6cbeb754... (AT) d50g2000hsf (DOT) googlegroups.co
m>,

shapper <mdmo... (AT) gmail (DOT) com> wrote:
I read the article and in fact I was reading a few things about font
size a few weeks ago.
My conclusion was that I should use something like:
body
{
font: normal 0.7em verdana,arial,helvetica,sans-serif;
}

And then everything relative to it like:
h1 {font: normal 120% verdana,arial,helvetica,sans-serif;}
.note {font: normal 70% verdana,arial,helvetica,sans-serif;}

Am I thinking wrong?

You are starting too small. .7em is too tiny to set for body
text. But you are right that everything else is relative to that
under normal conditions.

--
dorayme
I also saw two other approaches:
1. Setting body text to 100% and everything else using em
2. Setting body text and everything in percentage.

I am a little bit confused now. What is the best way to do it?

I started with 0.7 em because of something that I read.
Maybe I should use 100% in body.

What is the difference between using % or ems?

Thanks,
Miguel


Reply With Quote
  #6  
Old   
dorayme
 
Posts: n/a

Default Re: Table Header - 11-14-2007 , 11:04 PM



shapper wrote:

Quote:
dorayme wrote:

Am I thinking wrong?

You are starting too small. .7em is too tiny to set for body
text. But you are right that everything else is relative to that
under normal conditions.


I also saw two other approaches:
1. Setting body text to 100% and everything else using em
2. Setting body text and everything in percentage.

Either is ok. I do your number 1 and set as few sizes as
possible. You might try to forget about setting fonts and font
sizes altogether till you have finished making your site. Take a
look at it and see if you need to.


Quote:
I am a little bit confused now. What is the best way to do it?

I started with 0.7 em because of something that I read.
Maybe I should use 100% in body.

What is the difference between using % or ems?

If you use body (font-size: 1em;}, some versions of Internet
explorer miscalculate relative sizes later. So use 100%. You can
use em for headings and footers later.

--
dorayme


Reply With Quote
  #7  
Old   
Bergamot
 
Posts: n/a

Default Re: Table Header - 11-15-2007 , 01:36 PM



shapper wrote:
Quote:
What is the difference between using % or ems?
As far as font-size goes, they are interchangeable.
100% = 1em, 120% = 1.2em, 90% = .9em

You *need* to set body in % units because of IE bugs. Since there is no
benefit in switching to ems for other font-size settings, might as well
stick with % throughout.

--
Berg


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.