collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 347
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: Style Options examples?  (Read 8879 times)

0 Members and 1 Guest are viewing this topic.

Offline tfs

  • Jr. Member
  • **
  • Posts: 64
Style Options examples?
« on: May 07, 2009, 08:57:48 PM »
What are some examples of values I'd place in the Style Options?  They're free text fields and the help gives no indication of the valid entries.

The only one that is obvious is the No Title option.  The others don't seem to be as obvious to me.

Default Title Class:
Custom Title Class:
Custom Title Style:

No Title:
No Body:    

Default Body Class:
Custom Body Class:
Custom Body Style:

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: Style Options examples?
« Reply #1 on: May 07, 2009, 10:22:06 PM »
For "Custom" is only if you know some coding, so don't worry about them.

Default Title Class and Default Body Class have some options to choose. Consider them like colors to choose ;)

No title = only body
No body = only title or nothing. The content gives the impression to be in the portal background.

Here are some examples:

Only body with color 2


Body and Title


Only Body with color 1


No Title nor Body


Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Style Options examples?
« Reply #2 on: May 11, 2009, 04:59:11 AM »
tfs, do you still require assistance with this?
And slowly, you come to realize... It's all as it should be...

Offline tfs

  • Jr. Member
  • **
  • Posts: 64
Re: Style Options examples?
« Reply #3 on: May 11, 2009, 12:58:40 PM »
tfs, do you still require assistance with this?

Actually it was very helpful, thanks.  Except for the....

"For "Custom" is only if you know some coding, so don't worry about them."

...part.  Though I suspect what that really means is that the responder didn't have a list handy, and the values that are legitimate in those fields are often variable, based on things that are defined in other places.

Thanks,

TFS

Offline Blue

  • Customizer
  • *
  • Posts: 379
  • Gender: Male
  • Block Maker? =P
Re: Style Options examples?
« Reply #4 on: May 11, 2009, 04:44:49 PM »
I didn't tell you what custom coding means because I didn't knew to well what it was.

I think you need to know CSS and yes, the values should be there to guide members a bit.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Style Options examples?
« Reply #5 on: May 13, 2009, 01:53:47 AM »
If you click on the question marks in the area, you'll get answers for most of your questions.
And slowly, you come to realize... It's all as it should be...

Offline tfs

  • Jr. Member
  • **
  • Posts: 64
Re: Style Options examples?
« Reply #6 on: May 13, 2009, 02:23:35 AM »
If you click on the question marks in the area, you'll get answers for most of your questions.

The help for the entire Style Options box consists of the following...

===CUT===
These options allow you to specify CSS styling for each blocks.

Close window
===CUT===

That covers two pick lists, two check boxes and four free-form text fields.  Kinda sparse.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Style Options examples?
« Reply #7 on: May 13, 2009, 02:31:06 AM »
Okay, that's a bug a then.

For Custom Title/Body Class fields, you can use custom classes seperated with a space. Example: postarea keyinfo

For Custom Title/Body Style fields, you can use custom inline style seperated with a semi-colon as usual. Example: text-align: center; background: #FF00FF;
And slowly, you come to realize... It's all as it should be...

Offline Chas

  • Jr. Member
  • **
  • Posts: 74
  • Gender: Male
    • Fifty Plus Forum
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Style Options examples?
« Reply #8 on: November 13, 2009, 04:38:29 AM »
This "bug" is still in place in 2.3.1

How can I make the class apply to only PART of the text? I have entered

header2 in the custom body class field and

Code: [Select]
color: blue; font-size: 18px; margin: 0; padding: 0;
In the custom body style field but it seems to affect ALL the text in the body despite the tags used like

Code: [Select]
<header2 style="text-align: center;">Welcome to Fifty Plus Forum!</header2>
in the top of the body text and the centering is lost also

Have also tried just using

Code: [Select]
<header2>Welcome to Fifty Plus Forum!</header2>
with the same result.
« Last Edit: November 13, 2009, 04:45:21 AM by Hal9000 »

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Style Options examples?
« Reply #9 on: November 30, 2009, 11:19:44 AM »
How can I make the class apply to only PART of the text?

You need to apply the style only to that part of the text. Example:

Code: [Select]
Hello I'm a content.<span style="color: #FF0000;">I'm the only red here.</span>
I have entered

header2 in the custom body class field and

That means you already created a CSS class named "header2" and you are setting that class for the whole block content.

Code: [Select]
color: blue; font-size: 18px; margin: 0; padding: 0;
In the custom body style field but it seems to affect ALL the text in the body despite the tags used like

Code: [Select]
<header2 style="text-align: center;">Welcome to Fifty Plus Forum!</header2>
in the top of the body text and the centering is lost also

Have also tried just using

Code: [Select]
<header2>Welcome to Fifty Plus Forum!</header2>
with the same result.

That is expected. Firstly, every style field there affects all either title or body of the block. If you want to style only a part of the text, you need to do that like in the example I gave above, in the content itself. Custom class doesn't mean that it creates a new HTML tag, but attaches the already created CSS class to the block body.

What you want to do is probably just this:

Code: [Select]
<div style="width: 100%; text-align: center; color: blue; font-size: 18px;">Welcome to Fifty Plus Forum!</div>
as the HTML block content.
And slowly, you come to realize... It's all as it should be...

Offline Chas

  • Jr. Member
  • **
  • Posts: 74
  • Gender: Male
    • Fifty Plus Forum
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Style Options examples?
« Reply #10 on: December 03, 2009, 04:44:33 AM »
Thanks for the explanation Sinan,

It was my misunderstanding that you could create a style and then apply that to part of the block with the tags, like making a mini CSS with the Body Class Field. Now I understand that the Body class field affects ALL of the text in the body of the block it is clear.

Chas