Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2019-11-12 10:36:37

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

CSS: content in two columns

hi css gurus!

why in this page content (introduction text and image) at the top of a page doesn’t display in two columns? i use the same css on many pages without problems

.tulbad-2,.tulbad-3,.tulbad-4{
margin:0;
padding: 0;
word-spacing: -0.26em;
width:100%;
}

.tulbad-2 > div,.tulbad-3 > div,.tulbad-4 > div{
margin-bottom: 3%;
padding:0;
text-align:left;
word-spacing: 0;
vertical-align:top;
display:inline-block;
overflow:hidden;
position:relative;
}

i just don’t get it… :(

Offline

#2 2019-11-12 11:23:18

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,196
Website

Re: CSS: content in two columns

In Safari: Ok – Image next to a text column.
in Firefox: Rounding “error” ? 47% + 47% + 6% may sum up correctly but may compute to something 1px wider then the parent container. Setting the margin to 5% works.

at my window width


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#3 2019-11-12 12:25:53

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: CSS: content in two columns

actually it was a little bit differently done than my other sites. ;) now ok.

Offline

Board footer

Powered by FluxBB