Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
utkarsh champ
Fix the width of liferay portal
29 maggio 2013 13.08
Risposta

utkarsh champ

Punteggio: New Member

Messaggi: 6

Data di Iscrizione: 16 maggio 2013

Messaggi recenti

Hi,
I want to fix the size of my liferay portal page. Currently my screen size is 1920x1200 but most of the user has screen with 1280x800. So i want to fix the width and make it in center to make it consistent across the screen.

BR,
Utkarsh
Ryan Schuhler
RE: Fix the width of liferay portal
29 maggio 2013 14.12
Risposta

Ryan Schuhler

LIFERAY STAFF

Punteggio: Junior Member

Messaggi: 77

Data di Iscrizione: 5 luglio 2012

Messaggi recenti

Whatever div you fix the width on you can usually add a "margin: 0 auto;" style to it and it will center it for you. The element might have to be display:block; as well.
Hope that helps,
Ryan
utkarsh champ
RE: Fix the width of liferay portal
29 maggio 2013 14.48
Risposta

utkarsh champ

Punteggio: New Member

Messaggi: 6

Data di Iscrizione: 16 maggio 2013

Messaggi recenti

Thanks Ryan for your prompt response.

Where can i fix the width? I want to display same way right now liferay website used to display in my screen. I am attaching both screenshot for more understanding.
Allegato

Allegato

Allegati: liferay-page.jpg (231,9k), myapp.jpg (131,8k)
Ryan Schuhler
RE: Fix the width of liferay portal
29 maggio 2013 14.56
Risposta

Ryan Schuhler

LIFERAY STAFF

Punteggio: Junior Member

Messaggi: 77

Data di Iscrizione: 5 luglio 2012

Messaggi recenti

I dont know exactly where would be best to fix the width. My initial guess would be on the #wrapper, but it depends what classes and ids you are using for your theme. It would be best to use the developer tools and experiment where it would work best to fix the width. Basically you are looking for an element that holds everything you want centered.
utkarsh champ
RE: Fix the width of liferay portal
6 giugno 2013 14.47
Risposta

utkarsh champ

Punteggio: New Member

Messaggi: 6

Data di Iscrizione: 16 maggio 2013

Messaggi recenti

I am using the default classic them only. Didn't get any hint on where to change the width to make it consistent.