The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> font size
sasith
post Feb 19 2013, 02:28 PM
Post #1





Group: Members
Posts: 1
Joined: 19-February 13
Member No.: 18,686



can any one help me to increase the size of this?? mellow.gif mellow.gif mellow.gif mellow.gif

</style>
<table width="100%" border="0px">
<tr>
<th></th>
<th>DGDFG</th>
<th></th>
<th>DFGDFG</th>
</tr>

This post has been edited by sasith: Feb 19 2013, 02:29 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 19 2013, 03:04 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



If that isn't the only table you have, give the table an ID like so.

HTML
<table width="100%" border="0px" id="sasith">


Then paste this in HEAD.

HTML
<style type="text/css">

#sasith { font-size: 200% }

</style>


It's better to use a linked style sheet (a separate file), but this is an OK way to start.

http://htmlhelp.com/reference/css/

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 19 2013, 03:54 PM
Post #3


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



What is the semantic purpose of the DGDFG text? Since you use TH elements it looks like heading content, in which case you might add a heading element inside it: http://www.htmlhelp.com/reference/html40/block/h2.html (admittedly it's a bit redundant to put a heading in a table heading, but it seems to be permitted).

However, don't use headings just to make text larger or bolder. HTML elements are meant for structure and semantic meaning, for pure decoration you should use CSS like pandy showed.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 19 2013, 05:03 PM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



He didn't. You're the one suggesting it. biggrin.gif

Why mess with headings? TH is heading enough (if the text really is a heading). Besides, default styling of H(n) is ugly as everyone knows, so CSS would be needed anyway. I don't see the point.

But maybe I misunderstood and you don't want all text in the table to have the same size. Than you just need to use a more specific selector. If you want all THs to use the same size you go...

CODE
#sasith th { font-size: 200% }


If you only want a few headings to have this size you can give them a class and then use that as the selector.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 19 2013, 09:32 PM
Post #5


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Feb 19 2013, 11:03 PM) *

He didn't. You're the one suggesting it. biggrin.gif

unsure.gif

QUOTE
Why mess with headings? TH is heading enough (if the text really is a heading).

Maybe the OP wants some TH heading to be more heading-like than others?

QUOTE
But maybe I misunderstood and you don't want all text in the table to have the same size.

Yes, I assumed that only the cells with red text should appear in a larger font.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 20 2013, 07:10 AM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



QUOTE(Christian J @ Feb 20 2013, 03:32 AM) *

Maybe the OP wants some TH heading to be more heading-like than others?


That's what CSS is for. ninja.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 20 2013, 11:05 AM
Post #7


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



Not if it's for underlying semantic reasons.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 20 2013, 02:50 PM
Post #8


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



What would the reasons for a TH not being enough be?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 20 2013, 05:36 PM
Post #9


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



Maybe the OP wants it to be a higher level heading than the other THs (like H2 vs H3, etc).
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 20 2013, 05:40 PM
Post #10


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Maybe he also wants a slide show and a flash intro. We don't know that.

But you didn't suggest headings because of any sematics you saw in "DGDFG". You did it because of the size of them. Confess! laugh.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 10:41 PM