1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Problem HTML/CSS Bootstrap

Discussion in 'HTML & Website Design' started by Oranboard, Sep 28, 2013.

  1. #1
    Hey following Problem.

    I design a project for me. I dont 100% with HTML and CSS but it works very well.

    My only problem is i want the "unit" 365px height. I entered that in css but it does not work.
    I get 485px

    Thats my Code;

    .hero-unit {
        border-radius: 0px;
        height: 365px;
    HTML:
     
    Oranboard, Sep 28, 2013 IP
  2. undergroundseo

    undergroundseo Active Member

    Messages:
    121
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    73
    #2
    .hero-unit {
        border-radius: 0px;
        height: 365px;
    }
    HTML:
    That looks right for 365px height just be sure to close it } and then call it.
     
    undergroundseo, Sep 28, 2013 IP
  3. Oranboard

    Oranboard Active Member

    Messages:
    40
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    65
    #3
    Yes i only dont copyed that in but it also does not work..
     
    Oranboard, Sep 29, 2013 IP
  4. Hefaistos

    Hefaistos Active Member

    Messages:
    194
    Likes Received:
    14
    Best Answers:
    9
    Trophy Points:
    63
    Digital Goods:
    1
    #4
    Mabe you have some unclosed tags. Validate your HTML with W3C validator first.
     
    Hefaistos, Sep 29, 2013 IP
  5. Oranboard

    Oranboard Active Member

    Messages:
    40
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    65
    #5
    Have that all done before...

    Can be there a problem with the container but the container only says the weight not the height
     
    Oranboard, Sep 29, 2013 IP
  6. wiicker95

    wiicker95 Well-Known Member

    Messages:
    438
    Likes Received:
    37
    Best Answers:
    10
    Trophy Points:
    100
    #6
    You don't know what you're talking about. Fixed height is a problem, actually stating "border-radius: 0px" is a problem and means your whole CSS is gibberish. But then again, bootstrap, your biggest problem overall, makes CSS gibberish right off the bat.

    Wanna hear a joke about bootstrap? Because of bootstrap, Dan Schultz has been nicknamed "fan" up in heaven!
     
    wiicker95, Sep 29, 2013 IP
  7. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #7
    Yeah, fixing the height of an element usually means you're doing something wrong, but to say for sure we'd have to see far more code than your little snippet.... is there any padding set? Borders? Margins? Those can all change an elements size or appearance. How deeply nested is that element?

    ... and, well... I could post another long rant about Bootstrap, but really just do yourself a favor and pitch that fat, bloated, idiotic halfwit method of building a website in the trash where it belongs. Lemme guess, you've got "jQuery for nothing" bloating it out too? Illegible/inaccessible/slow webfonts? Guessing, but once 'frameworks' are on the table it seems all sanity goes out of design.
     
    deathshadow, Sep 30, 2013 IP