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.

Two logos according to different header size.

Discussion in 'CSS' started by Space Cobra, Jun 7, 2014.

  1. #1
    Hi,

    I'm building a layout with a header in two different size. So, when you load the page you see the header in full size. When you scroll down the header is smaller.

    Right now I have a svg image as logo but I want to use two different images on the header. One for big header and the other for small header.

    Do you know how can I do that in CSS?

    Thanks,
     
    Space Cobra, Jun 7, 2014 IP
  2. COBOLdinosaur

    COBOLdinosaur Active Member

    Messages:
    515
    Likes Received:
    123
    Best Answers:
    11
    Trophy Points:
    95
    #2
    It would help if you posted a link so we can see what we are dealing with.
     
    COBOLdinosaur, Jun 9, 2014 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #3
    COBOLdinosaur has it right, no code, and it becomes "this is why we can't help you" -- though it SOUNDS like you are playing goofy scripting tricks with some sort of fixed header, which is garbage accessibility and another of those "gee ain't it neat" bits of garbage that has no business on a website.
     
    deathshadow, Jun 10, 2014 IP
  4. jworldwide

    jworldwide Active Member

    Messages:
    707
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Are you wanting to large image to "shrink" when you scroll down?
     
    jworldwide, Jun 16, 2014 IP
  5. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,151
    Likes Received:
    1,656
    Best Answers:
    29
    Trophy Points:
    475
    #5
    Agree with DS. The sites with shrinking logos really tick me off. That stuff is going away anyway, so you'd better of not even bother looking for it.
     
    qwikad.com, Jun 17, 2014 IP
  6. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #6
    ACTUALLY, I wouldn't go that far -- it can serve a purpose for things like responsive layout; swapping the image when the WIDTH is too big makes sense...

    I just take issue with it on something like scrolling.
     
    deathshadow, Jun 17, 2014 IP
  7. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,151
    Likes Received:
    1,656
    Best Answers:
    29
    Trophy Points:
    475
    #7
    qwikad.com, Jun 17, 2014 IP