Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    GIF shows where to locate </> in the thread and or post editor toolbar.
    To learn more about how to use our BBCode feature, review our "How to post your code into threads" here.

    Thank you, Code Forum.

CSS repeat a table

Sunville

New Coder
I am using repeat region to display database results in a table
this results in all tables under each other
But I want 2 columns of tables
just as seen on https://www.mastercar.be/classiccars.php
How do I get this done in CSS?
This site was built years ago for PHP version 5.
I now have to upgrade the entire site for php 7, but many of the dreamweaver extensions I used back then are outdated and no longer exist.
They advised me to use css for this, hence my question.
 
i use adobe dreamweaver to create my sites. In the old versions I had extensions (add-ons) that I could use to code things.
In the newer version of dreamweaver they are no longer supported. I am advised to do this now via css.
So I have a table with content in it, from a database.
to display all results, the table is repeated. That works.
but all tables are one below the other.
So I want them to be placed next to each other as on https://www.mastercar.be/classiccars.php and not as on
 
i used your grid, but it doesn't create columns.
There must be another black table next to every black table with blue content.
so that I have 2 columns
and the necessary number of rows

I think the problem is that only 1 table is created, but the repeat code repeats it, so only 1 <div> </div>
 
Naamloos document
so tables and grid = evil
look at my example again, the grid code belongs in a superordinate div that contains the elements that should be displayed as 2 columns

1611151768721.webp
you put the gridcode in the table, what exactly is that supposed to do?
The table only shows the information of the cars

also why do the divs have a variable id that is not difinated?
 

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom