The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Changing font size
jfpan
post Mar 29 2012, 11:12 AM
Post #1





Group: Members
Posts: 4
Joined: 29-March 12
Member No.: 16,817



Greetings. I'm trying to alter the font size of some text in the Contact Us section of our online store. The font size apparently is generically set for certain aspects of the site, so I have been told by the hosting company that I have to change the font size in the specific location of the text. I only have a sub-rudimentary familiarity with html. The current line of code is as follows:

<td class="titles" height="35"><b>[store_name]</b></td>

I want to change the size of the store_name, so I changed the code to the following:
<td class="titles" height="35"><b><style="font-size:25px;">[store_name]</b></td>

The store name size didn't change at all, so obviously I'm doing something wrong. I may be a prime example of "a little knowledge can be dangerous". Anything that can be suggested to solve the problem would really be appreciated.

Thanks.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Mar 29 2012, 11:17 AM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,007
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



The style attribute needs to be part of some other tag. You can't just stick it in <brackets> the way you did.

See also:
http://htmlhelp.com/reference/css/style-html.html#inlining


--------------------
Darin McGrew
WDG Member since 1998
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jfpan
post Mar 29 2012, 01:21 PM
Post #3





Group: Members
Posts: 4
Joined: 29-March 12
Member No.: 16,817



QUOTE(Darin McGrew @ Mar 29 2012, 12:17 PM) *

The style attribute needs to be part of some other tag. You can't just stick it in <brackets> the way you did.

See also:
http://htmlhelp.com/reference/css/style-html.html#inlining


Would you know where that other tag might be located, and what it might look like?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 29 2012, 02:41 PM
Post #4


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 15,351
Joined: 9-August 06
Member No.: 6



If you want it to be valid for all text in the TD, use it with that TD.


--------------------
"Never go to excess, but let moderation be your guide."
- Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jfpan
post Mar 29 2012, 04:53 PM
Post #5





Group: Members
Posts: 4
Joined: 29-March 12
Member No.: 16,817



QUOTE(pandy @ Mar 29 2012, 03:41 PM) *

If you want it to be valid for all text in the TD, use it with that TD.

Bear with me, because I'm teaching myself and am really new at this. And if this is not a forum for beginners, please let me know. The only text in that particular TD line is the store name. Where else in that TD line would I place the style attributes if not in front of the store name? Thanks for your assistance and patience.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 29 2012, 05:25 PM
Post #6


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 15,351
Joined: 9-August 06
Member No.: 6



Sure the forum is for beginners.

All attributes goes in the start tag, so does the style attribute. You just list it with the others, separated by space.

HTML
<td class="titles" height="35" style="font-size: 25px">


If you want, you can remove the B too and use the CSS equivalent.
HTML
<td class="titles" height="35" style="font-size: 25px; font-weight: bold">
[store_name]
</td>


This may seem pretty pointless, but sooner or later you will move to external style sheets and then it will make more sense and leave your HTML uncluttered.


--------------------
"Never go to excess, but let moderation be your guide."
- Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jfpan
post Mar 30 2012, 02:18 PM
Post #7





Group: Members
Posts: 4
Joined: 29-March 12
Member No.: 16,817



QUOTE(pandy @ Mar 29 2012, 06:25 PM) *

Sure the forum is for beginners.

All attributes goes in the start tag, so does the style attribute. You just list it with the others, separated by space.

HTML
<td class="titles" height="35" style="font-size: 25px">


If you want, you can remove the B too and use the CSS equivalent.
HTML
<td class="titles" height="35" style="font-size: 25px; font-weight: bold">
[store_name]
</td>


This may seem pretty pointless, but sooner or later you will move to external style sheets and then it will make more sense and leave your HTML uncluttered.


Thank you. Worked like the proverbial charm.
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: 27th August 2014 - 09:52 AM