The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Portal news box stretches further right

3 posters

Go down

Portal news box stretches further right Empty Portal news box stretches further right

Post by TerryAhn May 14th 2011, 11:49 am

this is my forum

www.lolaustralia.com

when you see the portal, you can see news box on the right side, but for some reason it pokes out further to the right then the left.

why is this! please help. I put nice smiley for u! :wouhou:


Last edited by TerryAhn on May 14th 2011, 1:04 pm; edited 1 time in total
avatar
TerryAhn
Forumember

Posts : 49
Reputation : 0
Language : english

Back to top Go down

Portal news box stretches further right Empty Re: Portal news box stretches further right

Post by Base May 14th 2011, 12:39 pm

Hello, your title (HELLOOO) is not specific and therefore does not facilitate research via the search option. I am not answering (nor is any other member) until you change your title to a more specific title related to your problem.

We ask you to use explicit titles because:
The forum's search engine bases its research on keywords found in topic titles.

When you do a research, do you use "help", "urgent", "problem", "SOS" or "question" as keywords to look for topics about your problem/question?

Certainly not! So this is why it is important to use titles related to your problem/question. Doing this makes the researches much easier for visitors who use the search engine to get an answer to their question.

Thanks for your understanding.

Cordially
Forumotion Staff
Base
Base
Base
Forumaster

Male Posts : 10386
Reputation : 1695
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

Portal news box stretches further right Empty Re: Portal news box stretches further right

Post by TerryAhn May 14th 2011, 1:04 pm

Sorry, changed title.

I think this may have to do with css, should I post it here?
avatar
TerryAhn
Forumember

Posts : 49
Reputation : 0
Language : english

Back to top Go down

Portal news box stretches further right Empty Re: Portal news box stretches further right

Post by Nera. May 14th 2011, 2:02 pm

Try adding this to your CSS.
Replace XY with your number.

Code:
.portal {
    margin-left: -XYpx;
}

That is if I understood you right, you want the center the portal page.
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Portal news box stretches further right Empty Re: Portal news box stretches further right

Post by TerryAhn May 14th 2011, 2:19 pm

Yes i want to center the portal page. What is the number i should replace x and y with?
avatar
TerryAhn
Forumember

Posts : 49
Reputation : 0
Language : english

Back to top Go down

Portal news box stretches further right Empty Re: Portal news box stretches further right

Post by Nera. May 14th 2011, 2:29 pm

Try -60px.
First search in your CSS do you already have the rule wit margin-left: auto; If you have it replace it with

Code:
.portal {
    margin-left: -60px;
}
If you don't have it just add this and it should work.
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Portal news box stretches further right Empty Re: Portal news box stretches further right

Post by TerryAhn May 14th 2011, 2:34 pm

Hmm it doesn't work Sad

I've added another widget to the portal so you can see better what I mean.

The new's is on the left side, recent topics and links in the middle and the log in widget on the right.

But it doesn't get centered Sad
avatar
TerryAhn
Forumember

Posts : 49
Reputation : 0
Language : english

Back to top Go down

Portal news box stretches further right Empty Re: Portal news box stretches further right

Post by Nera. May 14th 2011, 2:37 pm

You didn't remove the existing portal rule margin auto, that is why it doesn't work. You must remove that one.
Code:
.portal {
margin-left: auto;
}
And if you are planning on adding more widgets to the side the number must be heigher.
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Portal news box stretches further right Empty Re: Portal news box stretches further right

Post by TerryAhn May 14th 2011, 2:39 pm

Ah ok I removed to log in widget and it centered perfectly Very Happy

But isn't pixels different on each screen. Like is it still centered on all moniters of different resolution?
avatar
TerryAhn
Forumember

Posts : 49
Reputation : 0
Language : english

Back to top Go down

Portal news box stretches further right Empty Re: Portal news box stretches further right

Post by Nera. May 14th 2011, 2:44 pm

Than it should be auto. I would try adding widgets on both sides and leave it on auto center.
Can't please them all, like browsers, so screens.
FM bugs on smaller screen for me.

You could wait for someone else to take a look.
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Portal news box stretches further right Empty Re: Portal news box stretches further right

Post by TerryAhn May 14th 2011, 2:53 pm

what would be the css code for auto centering the portal? O.o
avatar
TerryAhn
Forumember

Posts : 49
Reputation : 0
Language : english

Back to top Go down

Portal news box stretches further right Empty Re: Portal news box stretches further right

Post by Nera. May 14th 2011, 2:57 pm

Code:
.portal {
    margin-left: auto;
}
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum