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: 491
  • 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]

NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Author Topic: Main Content is too small  (Read 6311 times)

0 Members and 1 Guest are viewing this topic.

Offline Schnuffeltier

  • Semi Newbie
  • *
  • Posts: 19
  • Gender: Female
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Main Content is too small
« on: March 13, 2014, 05:27:48 AM »
Hello!

First I must appologise for my mistakes, my English is very poor. ;-)

I am really confused and in trouble by trying to manage this content problem.

In Forum and Portal I would like to change the width of the content, it is a bit too small for showing all buttons, pictures, blocks etc. nicely and properly.

The Wrapper ist fixed with 990px width and should not be larger.

What I want to change is just the width of the content-section, because there is a lot of "not used space" between Content and Wrapper, maybe about 10px on both sides? Wrapper and Main-Contend could be more close together.

But I can't figure it out how this works. If I change anything there, everything would go to the right side or things disapear and so on. ;-)

Forum and Portal are not longer centered as they should be.

I hope that my post could be understood....

Maybe someone can help me?

Offline Schnuffeltier

  • Semi Newbie
  • *
  • Posts: 19
  • Gender: Female
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Main Content is too small
« Reply #1 on: March 19, 2014, 06:03:49 AM »
Is there any possibility to change this? Or is this space fixed?

I mean the space between the white border around the main content (here shown on the left side) and the blocks on the left and right side.

There is twice as much space as between the blocks. It should be the same - about 5 px.

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Main Content is too small
« Reply #2 on: March 19, 2014, 04:20:53 PM »
Schnuffeltier,

For the space between blocks, you can edit the following file:
../Themes/default/css/portal.css

.. you can also copy that file to your custom theme css folder and edit it within that folder if you do not want to affect other themes.

Find this:
Code: [Select]
#sp_main
{
width: 100%;
border-spacing: 5px;
table-layout: fixed;
}

.. edit the border-spacing attribute to something smaller. To have finer measurement control you can use em instead of px whereas decimals can be used. The int number will have be smaller though ie. 0.5em

Regards.

Offline Schnuffeltier

  • Semi Newbie
  • *
  • Posts: 19
  • Gender: Female
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Main Content is too small
« Reply #3 on: March 19, 2014, 06:11:04 PM »
Thank you, Underdog...

But I don't want to have less space between the blocks - it looks nice the way it is.

If I edit the border-spacing in sp_main, all the blocks will be to close together, but the space between blocks and the border of the content_section ist not really getting smaller.

It should look like this, less space between the blocks and the white frame:
« Last Edit: March 19, 2014, 06:13:10 PM by Schnuffeltier »

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Main Content is too small
« Reply #4 on: March 20, 2014, 12:00:12 AM »
  The border-spacing attribute allows 2 values for horizontal & vertical (in that order).

Try this:
Code: [Select]
#sp_main
{
width: 100%;
border-spacing: 1px 5px;
table-layout: fixed;
}

Offline Schnuffeltier

  • Semi Newbie
  • *
  • Posts: 19
  • Gender: Female
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Main Content is too small
« Reply #5 on: March 20, 2014, 04:35:19 AM »
Thank you very much, Underdog...but this was not working the way I want it.

But now I found the solution and everything looks nice in Forum and Portal.

Before I had always tried to change the wrong parts of the css....and everything became a mess.

Suddenly it was very easy to do, I just changed this:

Code: [Select]
/* the content section */
#content_section
{
background: #FDF5E6 url(../images/theme/frame_repeat.png) repeat-y top left;
padding-left: 20px;
        border: 2px solid #FDF5E6;
        border-radius: 0.5em;
}
#content_section div.frame
{
background: url(../images/theme/frame_repeat.png) repeat-y top right;
display: block;
padding: 0 20px 0 0;
}

to this:

Code: [Select]
/* the content section */
#content_section
{
background: #FDF5E6 url(../images/theme/frame_repeat.png) repeat-y top left;
padding-left: 10px;
        border: 2px solid #FDF5E6;
        border-radius: 0.5em;
}
#content_section div.frame
{
background: url(../images/theme/frame_repeat.png) repeat-y top right;
display: block;
padding: 0 10px 0 0;
}

I wonder, why I have not tried this before....

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Main Content is too small
« Reply #6 on: March 28, 2014, 01:18:14 PM »
Very good.  I am glad you figured it out.  It can sometimes take a while for one person to understand what the other one is talking about.

Have you ever tried using the "F12" tools in IE or Chrome, or Firebug for Firefox?  These tools make it very easy to point a t something in the browser and inspect all the CSS that affects it.  This can usually help speed up your search for whatever is affecting the layout.

I hope this helps you with your next CSS problem.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Schnuffeltier

  • Semi Newbie
  • *
  • Posts: 19
  • Gender: Female
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Main Content is too small
« Reply #7 on: March 29, 2014, 05:21:34 AM »
Yes, AngelinaBelle, I am using "F12".

I was just confused and "blind". (I don't know a english idiom, maybe  "not able to see the wood for the trees"?)

It was pretty easy to do it at last - I feel a little embarrassed about asking this.

And sorry that my questions are a bit puzzling. I is not easy for me to write in english.

« Last Edit: March 29, 2014, 05:47:48 AM by Schnuffeltier »

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Main Content is too small
« Reply #8 on: March 31, 2014, 03:04:25 PM »
Yes -- sometimes "I can't see the forest for the trees" myself.
I am glad you figured it out.

Your English seems pretty good.  I know it will get easier for you as you use it.
I hope everything goes well on your forum!

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

Have you tried the SimplePortal documentation?