TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,234
  • Total Topics: 21,353
  • Online today: 606
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 522
  • Total: 523
  • @rjen

Resize text in certain blocks

Started by sanax, December 22, 2006, 10:39:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sanax

I want to resize text in certain blocks. If I make changes to my style.css it changes most of the text through out the site...

Can someone help with the php code and where can I add this code?


sanax

I want to resize the font in the front page blocks (summaries of the articles and forum posts)

JPDeni

The reason I asked is that there are two possibilities. With the "freeform" blocks like php, html+bbc or scriptblocks, you can set the font in the block itself. With the premade blocks, there's a little more to it. You have a choice, really. You can alter the TPortalBlocks.template.php file to change the size of the fonts, or you can copy the code for those blocks into a php block and set the font size within the code.

I'll take a closer look at the code in the meantime to see what needs to be changed or copied.


JPDeni

Which do you want? Do you want to alter the files or do you want to copy the code into blocks? Your decision will tell me which way to go. Personally, I think it's better to copy the code into php blocks and leave the TP files alone, but you may prefer to go the other way.

sanax

Settings > Frontpage > I'm using layout B > What to show on front page: 'Both forum and articles - sorted on date is checked

I won't be able to place the code in blocks because I don't use html or php blocks. The software creates 'summary' blocks on the front page...

Seems to me I'll have to add code to the php files.


JPDeni

Can I get a link to your front page so I can see exactly what you're doing?

This website is proudly hosted on Crocweb Cloud Website Hosting.