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;

    HTML:
    1. .hero-unit {
    2.     border-radius: 0px;
    3.     height: 365px;

    Oranboard, Sep 28, 2013 IP
  2. undergroundseo

    undergroundseo Active Member

    Messages:
    119
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    63
    #2
    HTML:
    1. .hero-unit {
    2.     border-radius: 0px;
    3.     height: 365px;
    4. }
    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:
    3
    Best Answers:
    0
    Trophy Points:
    55
    #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:
    157
    Likes Received:
    13
    Best Answers:
    9
    Trophy Points:
    63
    #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:
    3
    Best Answers:
    0
    Trophy Points:
    55
    #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 Active Member

    Messages:
    437
    Likes Received:
    37
    Best Answers:
    10
    Trophy Points:
    75
    #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 Prominent Member

    Messages:
    5,976
    Likes Received:
    825
    Best Answers:
    144
    Trophy Points:
    395
    #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