掲示板

<div> right of wrapper

12年前 に Victor Pettersson によって更新されました。

<div> right of wrapper

New Member 投稿: 5 参加年月日: 12/03/20 最新の投稿
Hi,

<div> code in portal_normal.vm
<div id="sponsor">
content
</div>


css code in custom.css
#sponsor {
 float: right;
}


This place the <div> with wrapper measurements.

I want to create a div which is right of wrapper like this
http://www.greviegik.se/
A "standalone" wrapper.
thumbnail
12年前 に David H Nebinger によって更新されました。

RE: <div> right of wrapper

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
The only thing that makes it on the right in the referenced URL is the fact that the structure there is tables & rows, and the row w/ the ads is the right most row. There's nothing magical about their layout, you could do a 70/30 layout and get the same thing without doing a line of theme coding...
12年前 に Victor Pettersson によって更新されました。

RE: <div> right of wrapper

New Member 投稿: 5 参加年月日: 12/03/20 最新の投稿
Thanks for your answer,

I meant the ads to be outside the 70/30.
thumbnail
12年前 に David H Nebinger によって更新されました。

RE: <div> right of wrapper

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Well that you will have to do in the theme, but you'd have to embed the portlet that is supposed to be on the right hand side.

In portal_normal.vm, you'd add your div outside of the wrapper, such as:

<div id="sponsor">
</div>
<div id="wrapper">
</div>


Then your CSS should make it float on the right of the wrapper.
12年前 に Victor Pettersson によって更新されました。

RE: <div> right of wrapper

New Member 投稿: 5 参加年月日: 12/03/20 最新の投稿
I tried that, but the site behaves like this..
Notice the gap between the menu and content.

添付ファイル:

thumbnail
12年前 に David H Nebinger によって更新されました。

RE: <div> right of wrapper

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
So you're looking at CSS issues, not Liferay issues.

Your display for the div is probably set to block which will affect the underlying area.
12年前 に Victor Pettersson によって更新されました。

RE: <div> right of wrapper

New Member 投稿: 5 参加年月日: 12/03/20 最新の投稿
Okay, thanks!