Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Css grid simplifying

  • This topic is empty.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #273494
    kuipou
    Participant

    I created an invoice in CSS grid though i think i took the long way around instead of the short one the problem i have is that the purple area is dynamical along with its cost so it could be one item as it could be 50 so i don’t know if i managed that part correctly as i would have wanted to have headers and footers for the invoices to stay in place and the invoice them selves to fill up

    https://codepen.io/kuipou/pen/qKgpyz/ here’s my codepen any help would appreciated

    #273575
    Paulie_D
    Member

    Codepen doesn’t load for me….can you simplify it.

    #273577
    kuipou
    Participant

    I resimplified it but i dont know why my grid isnt showing up though the css is all there

    #273580
    Paulie_D
    Member

    There were some formatting issues and you had selected SASS instead of CSS.

    I’m not sure what you have here, it seems to be some mishmash of both CSS & SASS.

    Perhaps sort that out first…at least something shows up now.

    https://codepen.io/Paulie-D/pen/VdNLwZ

    Do you have an image of what this is supposed to look like?

    #273581
    kuipou
    Participant

    it’s supposed to look like this : https://imgur.com/nrz0Af0

    originally my file is a sass file but for sake of breviety i copy pasted each file of my sass in one file to codepen

    thought the Total cost should be at the bottom with an entire black line going down but since each item is added dynamically i didnt know if i code the grid right

    #273585
    Paulie_D
    Member

    I’d take each part at a time…you seem to be mixing element names and id’s etc. so you might want make sure what is what.

    It looks like the hard part is the lines on the invoice amounts which, as it turns out is pretty simple.

    https://codepen.io/Paulie-D/pen/VdNLwZ

    #273586
    kuipou
    Participant

    Can you explain though how you did

    when i look at it in Firefox it fails though and theres the black left border for cost that is missing but because no new element is added the bar wont appear right?

    #273590
    Paulie_D
    Member

    I haven’t added all the borders….I’m sure you can add those to get the look you are after.

    #273591
    kuipou
    Participant

    Though why does it fails in firefox and can you explain what you did please?

    #273592
    Paulie_D
    Member

    Looks OK to me in FF….but I’d have to rebuild quite a lot for full functonality and, unfortunately, I don’t have time right now.

    I just used the basics…Chris has an excellent guide to CSS-Grid you can read.

    Start with each component…don’t try to build the whole page in one go….

    I’d also argue that you’re overusing sections/articles//asides/headers & footers. Most of the time, simple divs & spans will do; especially for something as simple as an invoice template.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘CSS’ is closed to new topics and replies.