Need CSS button image help

Discussion in 'CSS' started by lloyd21, Jan 12, 2010.

  1. #1
    There was a DP guy who designed my page but now has disappeared, and I need CSS help.

    Only the top half of my buttons are showing on my webpage, which I believe is a CSS problem.

    Can anybody help? TIA
    CSS Code:
     
    Last edited: Jan 12, 2010
    lloyd21, Jan 12, 2010 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #2
    Yeah, I'd disappear too if I wrote CSS like that. PX metric font declaration on body, px metric fonts on EVERYTHING, no reset requiring constantly dicking with margin, padding and border, fixed widths on elements that probably don't need it, etc, etc...

    Do you have the HTML that goes with that? CSS without the HTML it's being applied to is pretty much meaningless gibberish. A URL to the site in question would help even more.

    If you don't feel like sharing it publicly, feel free to PM it to me and I'll take a look. Also is this not rendering the whole button issue present in all browsers, or just one? ... like say... IE? It's possible your problem could be fixed by something as simple as a 'haslayout' trigger - but without the markup we've got nothing to test that on.
     
    deathshadow, Jan 13, 2010 IP
  3. govind

    govind Member

    Messages:
    119
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #3
    I agree with deathshadow ..can u give me the html file on which you are applying this CSS .so that i can understand it more clearly.without Html its impossible to rectify the errors in css ..
     
    govind, Jan 13, 2010 IP
  4. lloyd21

    lloyd21 Peon

    Messages:
    14
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    lloyd21, Jan 13, 2010 IP
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #5
    Uhg, turdpress... and with that aweber rubbish to boot.

    Looking at it though, I'm not certain what you mean by bottom half of buttons - Oh, wait, it's in that sidebar that looks like an off-site advertisement... ooh, that's bad marketing; I almost ignored that element as an advert.

    The problem would therin NOT be in the CSS you listed, but that rubbish aWeber form's inlined CSS. Let's see, the element that's miss-behaving, the subscribe button has this for markup:

    
    <div class="af-element buttonContainer">
    <input name="submit" class="submit" type="submit" value="Subscribe "/>
    <div class="af-clear"></div>
    
    
    Code (markup):
    ... which I'm not even certain how that's making the appearance you have there, but am fairly certain that's the wrong way to go about it.

    What's chopping it off seems to be a line-height and/or font-size issue, though I cannot be 100% certain given the total train wreck that the markup and CSS for that form is. Adding this:

    .af-body .submit { line-height:16px; !important;}

    Kind-of helped, at least making the button show it's whole text - but really my advice for the markup of that ENTIRE website is to pitch it in the trash and start over - Yes, it's that bad.
     
    deathshadow, Jan 13, 2010 IP
  6. lloyd21

    lloyd21 Peon

    Messages:
    14
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Excellent. Thanks. Im sending you a PM now.
     
    lloyd21, Jan 13, 2010 IP