Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Unable to align components horizontally using flexbox layout

Vthulasi-OracleApr 5 2016 — edited Apr 5 2016

I was trying to layout the components using flexbox layout as mentioned in the demo site. (Flex Layout - Flex Auto)

Tried the same code that was on the demo site:

<!DOCTYPE html>

<div id="esdiv1">

    <div  class="oj-row" id="esdiv2">

        <h2 data-bind="text:oj.Translations.getTranslatedString('ENT_STATUS_HEADER')" id="h21"></h2>

    </div>

    <hr/>

    <div class="demo-flex-display oj-flex-items-pad">

        <div class="oj-flex oj-sm-flex-items-initial">

            <div class="oj-flex-item">A</div>

            <div class="oj-flex-item">B</div>

            <div class="oj-flex-item">C</div>

        </div>

    </div>

</div>

But A, B, C are aligned vertically but the demo site with the above code shows A,B,C aligned horizontally.

Do we need to set some other style class or add some other attribute to align the div components horizontally?

thanks,

-Vinay

Comments

cormaco
Answer

Here is one way:

with input_string(ins) as (
    select 'Chesterton, Mark;#789;#Erbach, Magnus;#786' from dual union all
    select 'Phillips, Edward;#744;#Bubba, Matthew;#782;#Mahony, Chloe;#779' from dual union all
    select 'Corbett, Paul;#784;#Johnson, Ben;#392;#Smith, Adam;#775' from dual
)
select regexp_substr(ins,',\ *([^;]+)',1,1,null,1) regex from input_string

REGEX               
--------------------
Mark                
Edward              
Paul
                
Marked as Answer by User_AS6XD · Oct 14 2021
1 - 1

Post Details

Added on Apr 5 2016
2 comments
594 views