I have a page which is currently styled centred on bootstrap css (I'm using bootstrap 3 but could probably upgrade to 4 if it made a difference). I can't get it to style the way that I want. I'm not sure if this is because it is not possible or because of y limited skills in this area.
Essentially the page will show a list of items returned from a search. the list is structured so that on the left there is a 'black box' with the category in white text and o the right there is a text based link and usually some descriptive text.
I have manage to get 90% of what I want this to do without bootstrap using
display: table;
display: table-row;
display: table-column;
This can be seen here in fiddle This needs a little spacing & controlling of margins etc but has the essentials of what I'm trying to achieve - the background colour in the left hand 'cell' expands with the amount of text on the right.
Essentially there are 2 'columns' in the results list. On the left a div with a black background defining the type of item being returned and on the right a link and some text about the link.
I have lost all the bootstrap css now though. Even adding a 'container' makes the 'list' shift to the centre and adding the row and col classes back in stops it working altogether.
So if you look at this fiddle you can hopefully see what I mean (You may need to expand the display page so that it shows as 2 single rows.)
It is a little messy and the structure seems quite convoluted to me but it generally works okay. What I've been asked to do though is align the left and right columns so that they appear in a nice consistent alignment however much text there is (the left is never more than 2 lines but the right varies between 1 and 6 or 7.
Is there a way to use bootstrap to achieve the effect produced in the first fiddle using the 'display: table' elements ?