0

I have a flex grid set up as featured. Can anyone see why Dreamweaver is ignoring the justify-content: flex-end; CSS attribute?

I want the width of the Content tag to just fit the width of the content and to align itself to the right of the grid. At the moment, it's just staying at a 50% width.

Why is Dreamweaver ignoring this? I have even tried align-self: flex-end; & align-content: flex-end; and this is till being ignored.

By the way, the text is just filler ;)

.grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows:auto;
    grid-template-areas: 
        "title title"
        "textarea key-information";
    grid-gap: 20px;
    margin-top: 30px;
}

.title{
    grid-area: title;
    color:#707070;
    border-bottom: 2px solid #3A83F3;
}

.textarea{
    grid-area: textarea;
}

.textarea h3:after{
    font-family: fontAwesome;
    content: "\f3ef";
}

.key-information{
    grid-area: key-information;
    border-radius: 5px;
    padding: 20px;
    align-self: flex-end;/*This atribute should work*/
  justfy-self:flex-end;/*This is also inserted to show to neither are responsive*/
    color: #550AF1;
    font-size: 14px;
    border-left: 2px solid #3A83F3;
}

.key-information ul{
    margin: 0px;
    padding: 0px;
    list-style-type: none;
  width:20px; /*This has been inserted to show how the parent tag is being unresponsive to the "justify-self:flex-end" attribute*/
}

.key-information li{
    display: block;
    padding: 10px 0px;
}

.key-information a{
    text-decoration: none;
}

.key-information a:hover{
    text-decoration: underline;
}

.tag:before{
    font-family: fontAwesome;
    padding-right: 10px;
}

.download:before{
    content: "\f063";
}

.vat:before{
    content: "\f02b";
}

.registration-number:before{
    content: "\f3ef";
}

.email:before{
    content: "\f1d8";
}

.home:before{
    content: "\f015";
}

.pdf-download:before{
    content: "\f1c1";
}

.chevron:before{
    content: "\f054";
}

.people:before{
    content:"\f500";
}

.person:before{
    content: "\f4fc";
}
<div class="grid">
            <div class="title"><h2>Title</h2></div>
            <div class="textarea">
                <h3>Please allow me to introduce myself I'm a man of wealth and taste. I've been around for a long, long year, Stole many a man's soul to waste</h3>
                <p>I was around when Jesus Christ had his moment of doubt and pain made damn sure the pilate washed his hands and sealed his fate</p>
                <p>Pleased to meet you hope you guess my name, what's puzzling you Is the nature of my game.</p>
            </div>
            <div class="key-information">
                <ul>
                    <li class="tag home"><strong>Write to us:</strong> </li>
                    <li class="tag email"><strong>Message us: </strong></li>
                    <li class="tag vat"><strong>VAT Number: </strong></li>
                    <li class="tag registration-number"><strong>Company Number: </strong></li>
                    <li class="tag pdf-download"><a href="#"></a></li>
                    <li class="tag people"><strong>Institutional Shareholders: </strong><br/></li>
                    <li class="tag person"><strong>Managing Director: </strong></li>
                </ul>
            </div>
        </div>
  • 2
    `justify-content` and `align-content` can be applied *only* to grid containers. `justify-self` and `align-self` apply to grid items. – Michael Benjamin Jul 02 '20 at 12:45
  • ...of which still doesn't work. – hunkatydunkaty Jul 02 '20 at 12:58
  • Also I don't particularly appreciate my question being closed down just because there is a similar question on this forum. If the question you're referring to helped me, then I wouldn't have asked the question in the first place. – hunkatydunkaty Jul 02 '20 at 13:00
  • I had already re-opened the question, based on your previous comment. – Michael Benjamin Jul 02 '20 at 13:02
  • the align-self and justfy-self seems ok. https://jsfiddle.net/yt79qcfe/1/. Why you said it is not working? Do you mean it is not working in Dreamweaver only? – huan feng Jul 02 '20 at 13:15
  • I've only tried it in DW. So why does it work for you and not for me? Even in SO? This is the sort of ridiculousness an infuriates me. If it work's for you then it should work for me, so why doesn't it? You will see in my question, with exactly the same coding as in your JSFiddle code, it doesn't work.... – hunkatydunkaty Jul 02 '20 at 13:29
  • you have a typo: justify-self:flex-end; (missing the `i`) – Temani Afif Jul 02 '20 at 15:20
  • 1
    DW's rendering engine is not the same as normal browsers. It's why some CSS properties behave as expected in one browser and have issues in another. I don't know about the current state of the DW software but IIRC it's never had a good reputation of accurate HTML/CSS representation. – chazsolo Jul 02 '20 at 15:28
  • Dear @hunkatydunkaty I see that your are mixing flex properties with grid properties. You can consult the following guides to see the differences and expected behaviors: [1]: https://css-tricks.com/snippets/css/a-guide-to-flexbox/ [2]: https://css-tricks.com/snippets/css/complete-guide-grid/ align-self: flex-end;/*This atribute should work*/ /*No it should not work because is not display flex*/ – AleDP Jul 02 '20 at 16:40

0 Answers0