How to make 2 Rows and 8 columns CSS










0
















  • How to make 2 Rows and 8 Column Table in CSS?
    Note: The Table must have strict and stick position,



    I make 2 Rows and 8 Colums Table and
    i added Text module to the every Column and then i added HTML Code to
    the every Text module to take controll on the Behaviar of the text
    module and to convert the text module into editable HTML column with
    any drag and drop website builder plugin. So i get success in this
    and now the Problem is that all Columns are showing in Rows i mean now
    i have 8 rows and in every Row i have 1 Column. This Happened when i
    added the HTML code to every Text Module. This is the Short html
    that i added to every text Module to transform the text module in an
    editable column.




HTML > The same code is added to all Text Modules... Total Text modules are 8




Text Mudule 1



 <div id="main-section2"></div>
<div class="bg-wrapper-cover">
<div class="row2">
<div class="col-text-0"></div>
<div class="bg-wrapper-cover-background"></div>
</div>


Text Module 2



 <div id="main-section2"></div>
<div class="bg-wrapper-cover">
<div class="row2">
<div class="col-text-0"></div>
<div class="bg-wrapper-cover-background"></div>
</div>



CSS:




#main-section2
.bg-wrapper-cover
width:500px;
position:relative;

.row2
display: flex;
width:100%;
margin:0px;




.col-text-0
padding:0 14px;
border:1px solid black;
display:inline-block;
width:calc(25% - 30px);
height:50px;
background:pink;
z-index:10;


.bg-wrapper-cover-background
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
z-index :0;
transition: background 3s;


.bg-wrapper-cover:hover .col-text-0
background:none;

.bg-wrapper-cover:hover .col-text-0:hover
background:red;

.bg-wrapper-cover:hover .row2:nth-child(1) .col-text-0:nth-child(1):hover ~ .bg-wrapper-cover-background
background:blue;
z-index:0;


.bg-wrapper-cover:hover .row2:nth-child(1) .col-text-0:nth-child(3):hover ~ .bg-wrapper-cover-background
background:darkgray;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(1) .col-text-0:nth-child(5):hover ~ .bg-wrapper-cover-background
background:yellow;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(1) .col-text-0:nth-child(7):hover ~ .bg-wrapper-cover-background
background:orange;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(2) .col-text-0:nth-child(1):hover ~ .bg-wrapper-cover-background
background:gray;
z-index:0;


.bg-wrapper-cover:hover .row2:nth-child(2) .col-text-0:nth-child(3):hover ~ .bg-wrapper-cover-background
background:black;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(2) .col-text-0:nth-child(5):hover ~ .bg-wrapper-cover-background
background:green;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(2) .col-text-0:nth-child(7):hover ~ .bg-wrapper-cover-background
background:lightblue;
z-index:0;



SNAPSHOT










share|improve this question
























  • Post the whole code snippet of html structure. For everyone could see how exactly this happens. There's a button - add Code Snippet, so you can even run this code

    – Irina Kovalchuk
    Nov 14 '18 at 16:24












  • @IrinaKovalchuk how can i post the full code with separate Text Modules here? i already Explained that i apply the same code to a Different 8 Text modules in 2 rows. but the Text modules are showing in 8 Rows after applying the html Code. Stick to the left Side together in 8 rows.

    – user10239621
    Nov 14 '18 at 18:24











  • i mean in one row 4 text modules and in second row again 4 text modules.

    – user10239621
    Nov 14 '18 at 18:56















0
















  • How to make 2 Rows and 8 Column Table in CSS?
    Note: The Table must have strict and stick position,



    I make 2 Rows and 8 Colums Table and
    i added Text module to the every Column and then i added HTML Code to
    the every Text module to take controll on the Behaviar of the text
    module and to convert the text module into editable HTML column with
    any drag and drop website builder plugin. So i get success in this
    and now the Problem is that all Columns are showing in Rows i mean now
    i have 8 rows and in every Row i have 1 Column. This Happened when i
    added the HTML code to every Text Module. This is the Short html
    that i added to every text Module to transform the text module in an
    editable column.




HTML > The same code is added to all Text Modules... Total Text modules are 8




Text Mudule 1



 <div id="main-section2"></div>
<div class="bg-wrapper-cover">
<div class="row2">
<div class="col-text-0"></div>
<div class="bg-wrapper-cover-background"></div>
</div>


Text Module 2



 <div id="main-section2"></div>
<div class="bg-wrapper-cover">
<div class="row2">
<div class="col-text-0"></div>
<div class="bg-wrapper-cover-background"></div>
</div>



CSS:




#main-section2
.bg-wrapper-cover
width:500px;
position:relative;

.row2
display: flex;
width:100%;
margin:0px;




.col-text-0
padding:0 14px;
border:1px solid black;
display:inline-block;
width:calc(25% - 30px);
height:50px;
background:pink;
z-index:10;


.bg-wrapper-cover-background
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
z-index :0;
transition: background 3s;


.bg-wrapper-cover:hover .col-text-0
background:none;

.bg-wrapper-cover:hover .col-text-0:hover
background:red;

.bg-wrapper-cover:hover .row2:nth-child(1) .col-text-0:nth-child(1):hover ~ .bg-wrapper-cover-background
background:blue;
z-index:0;


.bg-wrapper-cover:hover .row2:nth-child(1) .col-text-0:nth-child(3):hover ~ .bg-wrapper-cover-background
background:darkgray;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(1) .col-text-0:nth-child(5):hover ~ .bg-wrapper-cover-background
background:yellow;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(1) .col-text-0:nth-child(7):hover ~ .bg-wrapper-cover-background
background:orange;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(2) .col-text-0:nth-child(1):hover ~ .bg-wrapper-cover-background
background:gray;
z-index:0;


.bg-wrapper-cover:hover .row2:nth-child(2) .col-text-0:nth-child(3):hover ~ .bg-wrapper-cover-background
background:black;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(2) .col-text-0:nth-child(5):hover ~ .bg-wrapper-cover-background
background:green;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(2) .col-text-0:nth-child(7):hover ~ .bg-wrapper-cover-background
background:lightblue;
z-index:0;



SNAPSHOT










share|improve this question
























  • Post the whole code snippet of html structure. For everyone could see how exactly this happens. There's a button - add Code Snippet, so you can even run this code

    – Irina Kovalchuk
    Nov 14 '18 at 16:24












  • @IrinaKovalchuk how can i post the full code with separate Text Modules here? i already Explained that i apply the same code to a Different 8 Text modules in 2 rows. but the Text modules are showing in 8 Rows after applying the html Code. Stick to the left Side together in 8 rows.

    – user10239621
    Nov 14 '18 at 18:24











  • i mean in one row 4 text modules and in second row again 4 text modules.

    – user10239621
    Nov 14 '18 at 18:56













0












0








0









  • How to make 2 Rows and 8 Column Table in CSS?
    Note: The Table must have strict and stick position,



    I make 2 Rows and 8 Colums Table and
    i added Text module to the every Column and then i added HTML Code to
    the every Text module to take controll on the Behaviar of the text
    module and to convert the text module into editable HTML column with
    any drag and drop website builder plugin. So i get success in this
    and now the Problem is that all Columns are showing in Rows i mean now
    i have 8 rows and in every Row i have 1 Column. This Happened when i
    added the HTML code to every Text Module. This is the Short html
    that i added to every text Module to transform the text module in an
    editable column.




HTML > The same code is added to all Text Modules... Total Text modules are 8




Text Mudule 1



 <div id="main-section2"></div>
<div class="bg-wrapper-cover">
<div class="row2">
<div class="col-text-0"></div>
<div class="bg-wrapper-cover-background"></div>
</div>


Text Module 2



 <div id="main-section2"></div>
<div class="bg-wrapper-cover">
<div class="row2">
<div class="col-text-0"></div>
<div class="bg-wrapper-cover-background"></div>
</div>



CSS:




#main-section2
.bg-wrapper-cover
width:500px;
position:relative;

.row2
display: flex;
width:100%;
margin:0px;




.col-text-0
padding:0 14px;
border:1px solid black;
display:inline-block;
width:calc(25% - 30px);
height:50px;
background:pink;
z-index:10;


.bg-wrapper-cover-background
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
z-index :0;
transition: background 3s;


.bg-wrapper-cover:hover .col-text-0
background:none;

.bg-wrapper-cover:hover .col-text-0:hover
background:red;

.bg-wrapper-cover:hover .row2:nth-child(1) .col-text-0:nth-child(1):hover ~ .bg-wrapper-cover-background
background:blue;
z-index:0;


.bg-wrapper-cover:hover .row2:nth-child(1) .col-text-0:nth-child(3):hover ~ .bg-wrapper-cover-background
background:darkgray;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(1) .col-text-0:nth-child(5):hover ~ .bg-wrapper-cover-background
background:yellow;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(1) .col-text-0:nth-child(7):hover ~ .bg-wrapper-cover-background
background:orange;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(2) .col-text-0:nth-child(1):hover ~ .bg-wrapper-cover-background
background:gray;
z-index:0;


.bg-wrapper-cover:hover .row2:nth-child(2) .col-text-0:nth-child(3):hover ~ .bg-wrapper-cover-background
background:black;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(2) .col-text-0:nth-child(5):hover ~ .bg-wrapper-cover-background
background:green;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(2) .col-text-0:nth-child(7):hover ~ .bg-wrapper-cover-background
background:lightblue;
z-index:0;



SNAPSHOT










share|improve this question

















  • How to make 2 Rows and 8 Column Table in CSS?
    Note: The Table must have strict and stick position,



    I make 2 Rows and 8 Colums Table and
    i added Text module to the every Column and then i added HTML Code to
    the every Text module to take controll on the Behaviar of the text
    module and to convert the text module into editable HTML column with
    any drag and drop website builder plugin. So i get success in this
    and now the Problem is that all Columns are showing in Rows i mean now
    i have 8 rows and in every Row i have 1 Column. This Happened when i
    added the HTML code to every Text Module. This is the Short html
    that i added to every text Module to transform the text module in an
    editable column.




HTML > The same code is added to all Text Modules... Total Text modules are 8




Text Mudule 1



 <div id="main-section2"></div>
<div class="bg-wrapper-cover">
<div class="row2">
<div class="col-text-0"></div>
<div class="bg-wrapper-cover-background"></div>
</div>


Text Module 2



 <div id="main-section2"></div>
<div class="bg-wrapper-cover">
<div class="row2">
<div class="col-text-0"></div>
<div class="bg-wrapper-cover-background"></div>
</div>



CSS:




#main-section2
.bg-wrapper-cover
width:500px;
position:relative;

.row2
display: flex;
width:100%;
margin:0px;




.col-text-0
padding:0 14px;
border:1px solid black;
display:inline-block;
width:calc(25% - 30px);
height:50px;
background:pink;
z-index:10;


.bg-wrapper-cover-background
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
z-index :0;
transition: background 3s;


.bg-wrapper-cover:hover .col-text-0
background:none;

.bg-wrapper-cover:hover .col-text-0:hover
background:red;

.bg-wrapper-cover:hover .row2:nth-child(1) .col-text-0:nth-child(1):hover ~ .bg-wrapper-cover-background
background:blue;
z-index:0;


.bg-wrapper-cover:hover .row2:nth-child(1) .col-text-0:nth-child(3):hover ~ .bg-wrapper-cover-background
background:darkgray;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(1) .col-text-0:nth-child(5):hover ~ .bg-wrapper-cover-background
background:yellow;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(1) .col-text-0:nth-child(7):hover ~ .bg-wrapper-cover-background
background:orange;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(2) .col-text-0:nth-child(1):hover ~ .bg-wrapper-cover-background
background:gray;
z-index:0;


.bg-wrapper-cover:hover .row2:nth-child(2) .col-text-0:nth-child(3):hover ~ .bg-wrapper-cover-background
background:black;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(2) .col-text-0:nth-child(5):hover ~ .bg-wrapper-cover-background
background:green;
z-index:0;

.bg-wrapper-cover:hover .row2:nth-child(2) .col-text-0:nth-child(7):hover ~ .bg-wrapper-cover-background
background:lightblue;
z-index:0;



SNAPSHOT







html css






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 13 '18 at 20:30

























asked Nov 13 '18 at 19:53







user10239621



















  • Post the whole code snippet of html structure. For everyone could see how exactly this happens. There's a button - add Code Snippet, so you can even run this code

    – Irina Kovalchuk
    Nov 14 '18 at 16:24












  • @IrinaKovalchuk how can i post the full code with separate Text Modules here? i already Explained that i apply the same code to a Different 8 Text modules in 2 rows. but the Text modules are showing in 8 Rows after applying the html Code. Stick to the left Side together in 8 rows.

    – user10239621
    Nov 14 '18 at 18:24











  • i mean in one row 4 text modules and in second row again 4 text modules.

    – user10239621
    Nov 14 '18 at 18:56

















  • Post the whole code snippet of html structure. For everyone could see how exactly this happens. There's a button - add Code Snippet, so you can even run this code

    – Irina Kovalchuk
    Nov 14 '18 at 16:24












  • @IrinaKovalchuk how can i post the full code with separate Text Modules here? i already Explained that i apply the same code to a Different 8 Text modules in 2 rows. but the Text modules are showing in 8 Rows after applying the html Code. Stick to the left Side together in 8 rows.

    – user10239621
    Nov 14 '18 at 18:24











  • i mean in one row 4 text modules and in second row again 4 text modules.

    – user10239621
    Nov 14 '18 at 18:56
















Post the whole code snippet of html structure. For everyone could see how exactly this happens. There's a button - add Code Snippet, so you can even run this code

– Irina Kovalchuk
Nov 14 '18 at 16:24






Post the whole code snippet of html structure. For everyone could see how exactly this happens. There's a button - add Code Snippet, so you can even run this code

– Irina Kovalchuk
Nov 14 '18 at 16:24














@IrinaKovalchuk how can i post the full code with separate Text Modules here? i already Explained that i apply the same code to a Different 8 Text modules in 2 rows. but the Text modules are showing in 8 Rows after applying the html Code. Stick to the left Side together in 8 rows.

– user10239621
Nov 14 '18 at 18:24





@IrinaKovalchuk how can i post the full code with separate Text Modules here? i already Explained that i apply the same code to a Different 8 Text modules in 2 rows. but the Text modules are showing in 8 Rows after applying the html Code. Stick to the left Side together in 8 rows.

– user10239621
Nov 14 '18 at 18:24













i mean in one row 4 text modules and in second row again 4 text modules.

– user10239621
Nov 14 '18 at 18:56





i mean in one row 4 text modules and in second row again 4 text modules.

– user10239621
Nov 14 '18 at 18:56












1 Answer
1






active

oldest

votes


















0














why not just an unordered list with the following style:



li:nth-child(2n) 
margin-bottom: 10px;






share|improve this answer























  • Thank you for your answer, I Tested but not working

    – user10239621
    Nov 13 '18 at 20:07











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53288531%2fhow-to-make-2-rows-and-8-columns-css%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown
























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














why not just an unordered list with the following style:



li:nth-child(2n) 
margin-bottom: 10px;






share|improve this answer























  • Thank you for your answer, I Tested but not working

    – user10239621
    Nov 13 '18 at 20:07
















0














why not just an unordered list with the following style:



li:nth-child(2n) 
margin-bottom: 10px;






share|improve this answer























  • Thank you for your answer, I Tested but not working

    – user10239621
    Nov 13 '18 at 20:07














0












0








0







why not just an unordered list with the following style:



li:nth-child(2n) 
margin-bottom: 10px;






share|improve this answer













why not just an unordered list with the following style:



li:nth-child(2n) 
margin-bottom: 10px;







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 13 '18 at 19:59









BrockBeldhamBrockBeldham

164




164












  • Thank you for your answer, I Tested but not working

    – user10239621
    Nov 13 '18 at 20:07


















  • Thank you for your answer, I Tested but not working

    – user10239621
    Nov 13 '18 at 20:07

















Thank you for your answer, I Tested but not working

– user10239621
Nov 13 '18 at 20:07






Thank you for your answer, I Tested but not working

– user10239621
Nov 13 '18 at 20:07




















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53288531%2fhow-to-make-2-rows-and-8-columns-css%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

Syphilis

Darth Vader #20