Forums

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

Home Forums CSS Header line

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #32673
    eXo
    Member

    Is there a way with css to have a line after my header that ends at the same spot no matter the size of the header?

    Header



    sometekstwithmoretekst


    #76908
    TheLeggett
    Member

    By all means @Fourize :) That’s what it’s there for!

    Not quite sure what sort of effect @eXo is looking for based on that description. Almost seems like a background image would be the easiest solution here.

    #76874
    eXo
    Member

    Thanks fourize ! :D i was looking for that! ^_^

    #76868
    jimsilverman
    Member

    i prefer:

    Header

    …and CSS’ing it similar to how you guys have done.

    this way, you don’t need to mess around with changing display attributes of elements. plus, i am paranoid of div-itis. but yeah, whatever works.

    #76862
    eXo
    Member

    Yes but its for a school project so it doesn’t matter :p, most of the teachers can’t even write CSS

    #76863
    jimsilverman
    Member

    @fourize – inline-block doesn’t behave right in ie7 and lower; it renders as a block element. i’m 99% sure (can’t check, i’m on a mac) your dotted line is getting covered up for geriatric internet users.

    if you care about ie7 users, best to use either display:inline for the inner div, or simply use an inline element (such as a span) to get the job done.

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