Hi All,
I have a theme with a Style.css in which I have defined a style rule for the
body element :
body
{
min-width: 780px;
margin: 0;
padding: 0;
border: 0;
text-align: center;
font-family: Verdana, Arial;
font-size: 8pt;
color: Black;
background-color: Ghostwhite;
}
I then have a content page based on a master page that implements the theme.
All rules of the body style are applied, except for the font-size.
Here's the html-output of the browser for a simpe page:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
Untitled Page
</title><link href="App_Theme s/Forest/Styles.css" type="text/css"
rel="stylesheet " /></head>
<body>
<form name="aspnetFor m" method="post" action="Default .aspx"
id="aspnetForm" >
<div>
<input type="hidden" name="__VIEWSTA TE" id="__VIEWSTATE "
value="/wEPDwULLTEwMDUy NjYzMjhkZE+MtGg eO3PmpQonZYA4J/ffFMq1" />
</div>
<table width=920 height=100% align=center cellpadding=0 cellspacing=0>
<tr height=1>
<td</td>
</tr>
<tr height=150>
<td class="app_head er"</td>
</tr>
<tr height=100%>
<td width=100% valign=top style="border-left:gray 1px
solid;border-right: gray 1px solid">
<table>
<tr>
<tdcol 1 </td>
<tdcol 2 </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" class="footerTa ble">
<tr>
<td align="center">
simple footer content
</td>
</tr>
</table>
</td>
</tr>
<tr height=1>
<td</td>
</tr>
</table>
</form>
</body>
</html>
Where you see col1 and col 2, the text does not appear in the correct
font-size??
Anyone any ideas?
thx,
Tom 3 2262
Well it doesn't make sense to me either.
Just define the font-size for the table element
as well in your stylesheet.
"tom" <to*@discussion s.microsoft.com wrote in message
news:1E******** *************** ***********@mic rosoft.com...
Hi All,
I have a theme with a Style.css in which I have defined a style rule for the
body element :
body
{
min-width: 780px;
margin: 0;
padding: 0;
border: 0;
text-align: center;
font-family: Verdana, Arial;
font-size: 8pt;
color: Black;
background-color: Ghostwhite;
}
I then have a content page based on a master page that implements the theme.
All rules of the body style are applied, except for the font-size.
Here's the html-output of the browser for a simpe page:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
Untitled Page
</title><link href="App_Theme s/Forest/Styles.css" type="text/css"
rel="stylesheet " /></head>
<body>
<form name="aspnetFor m" method="post" action="Default .aspx"
id="aspnetForm" >
<div>
<input type="hidden" name="__VIEWSTA TE" id="__VIEWSTATE "
value="/wEPDwULLTEwMDUy NjYzMjhkZE+MtGg eO3PmpQonZYA4J/ffFMq1" />
</div>
<table width=920 height=100% align=center cellpadding=0 cellspacing=0>
<tr height=1>
<td</td>
</tr>
<tr height=150>
<td class="app_head er"</td>
</tr>
<tr height=100%>
<td width=100% valign=top style="border-left:gray 1px
solid;border-right: gray 1px solid">
<table>
<tr>
<tdcol 1 </td>
<tdcol 2 </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" class="footerTa ble">
<tr>
<td align="center">
simple footer content
</td>
</tr>
</table>
</td>
</tr>
<tr height=1>
<td</td>
</tr>
</table>
</form>
</body>
</html>
Where you see col1 and col 2, the text does not appear in the correct
font-size??
Anyone any ideas?
thx,
Tom
Keep in mind that the object parent object of the item will override those
of other items further up the chain. Usually, the body will effect elements
that are within the body of the document, but not within items like a table.
You'll want to a style to govern the items that occur within a table cell to
cover all bases.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"tom" <to*@discussion s.microsoft.com wrote in message
news:1E******** *************** ***********@mic rosoft.com...
Hi All,
I have a theme with a Style.css in which I have defined a style rule for
the
body element :
body
{
min-width: 780px;
margin: 0;
padding: 0;
border: 0;
text-align: center;
font-family: Verdana, Arial;
font-size: 8pt;
color: Black;
background-color: Ghostwhite;
}
I then have a content page based on a master page that implements the
theme.
All rules of the body style are applied, except for the font-size.
Here's the html-output of the browser for a simpe page:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
Untitled Page
</title><link href="App_Theme s/Forest/Styles.css" type="text/css"
rel="stylesheet " /></head>
<body>
<form name="aspnetFor m" method="post" action="Default .aspx"
id="aspnetForm" >
<div>
<input type="hidden" name="__VIEWSTA TE" id="__VIEWSTATE "
value="/wEPDwULLTEwMDUy NjYzMjhkZE+MtGg eO3PmpQonZYA4J/ffFMq1" />
</div>
<table width=920 height=100% align=center cellpadding=0
cellspacing=0>
<tr height=1>
<td</td>
</tr>
<tr height=150>
<td class="app_head er"</td>
</tr>
<tr height=100%>
<td width=100% valign=top style="border-left:gray 1px
solid;border-right: gray 1px solid">
<table>
<tr>
<tdcol 1 </td>
<tdcol 2 </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" class="footerTa ble">
<tr>
<td align="center">
simple footer content
</td>
</tr>
</table>
</td>
</tr>
<tr height=1>
<td</td>
</tr>
</table>
</form>
</body>
</html>
Where you see col1 and col 2, the text does not appear in the correct
font-size??
Anyone any ideas?
thx,
Tom
I know I can define a style for the table element.
But I would prefer to have the body as the general style, and where
necessary override by specific classes on for instance tables.
It's strange that for instance font-family and color are picked up but not
the font-size.
Thanks anyway.
"Mark Fitzpatrick" wrote:
Keep in mind that the object parent object of the item will override those
of other items further up the chain. Usually, the body will effect elements
that are within the body of the document, but not within items like a table.
You'll want to a style to govern the items that occur within a table cell to
cover all bases.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"tom" <to*@discussion s.microsoft.com wrote in message
news:1E******** *************** ***********@mic rosoft.com...
Hi All,
I have a theme with a Style.css in which I have defined a style rule for
the
body element :
body
{
min-width: 780px;
margin: 0;
padding: 0;
border: 0;
text-align: center;
font-family: Verdana, Arial;
font-size: 8pt;
color: Black;
background-color: Ghostwhite;
}
I then have a content page based on a master page that implements the
theme.
All rules of the body style are applied, except for the font-size.
Here's the html-output of the browser for a simpe page:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
Untitled Page
</title><link href="App_Theme s/Forest/Styles.css" type="text/css"
rel="stylesheet " /></head>
<body>
<form name="aspnetFor m" method="post" action="Default .aspx"
id="aspnetForm" >
<div>
<input type="hidden" name="__VIEWSTA TE" id="__VIEWSTATE "
value="/wEPDwULLTEwMDUy NjYzMjhkZE+MtGg eO3PmpQonZYA4J/ffFMq1" />
</div>
<table width=920 height=100% align=center cellpadding=0
cellspacing=0>
<tr height=1>
<td</td>
</tr>
<tr height=150>
<td class="app_head er"</td>
</tr>
<tr height=100%>
<td width=100% valign=top style="border-left:gray 1px
solid;border-right: gray 1px solid">
<table>
<tr>
<tdcol 1 </td>
<tdcol 2 </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" class="footerTa ble">
<tr>
<td align="center">
simple footer content
</td>
</tr>
</table>
</td>
</tr>
<tr height=1>
<td</td>
</tr>
</table>
</form>
</body>
</html>
Where you see col1 and col 2, the text does not appear in the correct
font-size??
Anyone any ideas?
thx,
Tom
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Martin Ernst |
last post by:
Hello!
I wonder which font is normally used in IE (6) for windows if i use
"sans-serif" as font-family.
Does anybody know it? Thanks
Martin
|
by: Philipp Lenssen |
last post by:
Why is there no standardized and well-working way for a web-page to
offer the font for download/embed it, in order to be displayed on the
page?
No matter what you think of the preferred font of a designer, many
web-sites offer an image of the text instead to "force" this font --
which certainly can't be the solution (it's a bit of a hassle to
maintain and create).
|
by: Ståle Sæbøe |
last post by:
I am a bit curious about this.
The graphic design people I work with say it is their preferred font for
web pages. The reason being that it is "kinder" to the eye both in terms
of shape and size.
The HTML "hardcore elititst" profess that it is a useless font because
it is too big compared to other fonts.
Personally I do not care one way or the other, but I generally trust
|
by: Wim |
last post by:
I would like to store the ListView font in the XML config file. So I have
a string variable listFont that stores the font (font.ToString()). It
must be a string variable because a Font object cannot be written to the
XML config file. Next time the program is started the font is read from
the config file. But how to convert the string to a Font object?
--
Wim
|
by: pnp |
last post by:
I have created a coposite user control of a text box and a label. I have
exposed the font of the textbox property through a property of the
control but every time I try to change that through the property grid of
the designer when I use the composite control in a form, after a rebuild
the changes seem to get lost! I don't see the Font property anywhere in
the inner code... What am I doing wrong?
| |
by: Mika M |
last post by:
Hi!
I'm trying to print barcodes paper printings of my VB .NET (2003) Windows
forms application. Earlier I used Code39.TTF (True Type Font) with VB6, and
it was working fine, but now can't get barcodes with VB .NET with the same
font !? I downloaded demo .OTF-barcode font (Open Type Font), and using it
with VB.NET I can get barcode printings using Crystal Reports .rpt-files of
my application, and using Printing.PrintDocument too.
I'm...
|
by: BobAchgill |
last post by:
Is it possible to use a font that is not stored in the windows font directory?
I would like to use a font that is stored in my application directory...
But this does not seem to work...
rtbMyRichTextBox.SelectionFont = New Font(CurDir() + "\" + "MyFont.ttf", 12,
FontStyle.Bold)
Thanks!
|
by: BobAchgill |
last post by:
Has anyone had success with writing text using a private font that was not
already installed to the system?
When I try the example code in NET Framework Developer's Guide called
âCreating a Private Font Collectionâ
.... I only see a default font written to the form NOT the private font that
was loaded. Ofcourse I see the right font written if the font is already one
that is installed in the system. But if the private font that I...
|
by: Chubbly Geezer |
last post by:
I'm using a particular font (for credit card symbols) within a crystal
report which looks fine when I preview, however when I run the report with
real data, the font is now shown correctly. It seems to revert back to a
standard font and displays letters instead of card symbols. Any ideas.?
Can I embed a font or include one in my VB app.?
Thanks
|
by: =?Utf-8?B?Qm9iIFdhaXRl?= |
last post by:
I have written a calculator emulator which uses an LCD font in VB.NET in
VS2005. This application will be installed by means of an MSI file and I
dont want the user to have to manually install the font. So I have made the
font an embedded resource and, by adapting code from
http://www.bobpowell.net/tipstricks.htm, I now have the font working
correctly in debug mode. I set the Font property of my control to the
required font, which is...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |