11
JasonMR
Re: H1
  • 2004/9/25 20:32

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


Just create and insert in css file, your own class.

Example 2 Try

h1#MyNewsArticleText {
font-style:normal;
font-weight:normal;
font-size:0.8em;
color: #555;
text-decoration: none;
margin-top: 5px;
margin-bottom: 5px;
line-height: 1.5em;
}

and add in your news_item.htm template file, where you previously changed p -> h1, and exchange the class of the tag from -> your self created class MyNewsArticleText

Quote:

Old



New



12
ManXP
Re: H1
  • 2004/9/25 21:28

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Unfortunately, no one of these trick didn't help.

Text size is ok, but it's all like in BOLD

13
JasonMR
Re: H1
  • 2004/9/25 23:50

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


Have you got a site up, where you are testing this, so that I can take a look at the code?

14
Jackwan
Re: H1
  • 2004/9/25 23:59

  • Jackwan

  • Not too shy to talk

  • Posts: 129

  • Since: 2004/9/8 2


s

15
JasonMR
Re: H1
  • 2004/9/26 0:12

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21



16
ManXP
Re: H1
  • 2004/9/26 6:02

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


I was trying it on my main website, but i can give you these 2 files and screenshot how everything looks.

17
JasonMR
Re: H1
  • 2004/9/26 6:49

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


ME BIG TIME IDIOT

APPOLOGIZE MANY TIMES!!!!!!!!!!!


Had a little, but fatal error in the code I posted (dough), need to open my eyes a little wider

Here's how it should be (exchange the # hashmark for a . full stop| # == id; . == class)

Correct Snippet
Quote:

h1.MyNewsArticleText {
font-style:normal;
font-weight:normal;
font-size:0.8em;
color: #555;
text-decoration: none;
margin-top: 5px;
margin-bottom: 5px;
line-height: 1.5em;
}


Sorry guys, but sure ya learnt something (you should have listened to your parents: don't trust strangers!! )

This will work. I promise, 'cause I tested it with Max's site, as I couldn't believe what was being said. HA, my smoked brain at the end.....

18
ManXP
Re: H1
  • 2004/9/26 16:27

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Hey, you are genius. Everything works fine now, "hack" is perfect. Thanks many times, man.

19
ManXP
Re: H1
  • 2004/9/26 19:03

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Another question

I decided, that just News title should be in H1 and news text should be in H2.

So i made these changes. in news_item replaced

<{$story.title}>
with

<{$story.title}>



and in style.css h1.MyNewsArticleText replaced with h2.MyNewsArticleText

Also
.itemTitle a {
font-size: 100%;
font-size: 11px;
color: #ffffff;
background-color: transparent;

replaced with

.itemTitle a {
font-size: 100%;
font-size: 11px;
font-style:normal;
font-weight:normal;
color: #ffffff;
background-color: transparent;

But after this, Title was too big in height (text was ok, but row was so big) and main news text was big too. What's wrong?

Login

Who's Online

353 user(s) are online (214 user(s) are browsing Support Forums)


Members: 0


Guests: 353


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits