Header - Relative Banner Width

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fynnon
    Senior Member
    • Jul 2008
    • 123
    • 3.8.x

    Header - Relative Banner Width

    Hi, Christmas is coming (newsflash ) and i want to have a special Christmas banner on my forum`s header. the problem is that people use diffrent screen resolutions and my flash file doesn`t stretch or shrink accordingly. it looks fine for 1024x768 but it`s not width enough for bigger resolutions


    in header temeplate i use:

    PHP Code:
    <object width="100%" height="84px">
    <
    param name="movie" value="header.swf" />
    <
    param name="quality" value="high" />
    <
    embed src="header.swf" quality="high" width="100%" height="84px" /></object
    in Main CSS i use:

    PHP Code:
    #banner {
    width:98%;
    height:84px;
    position:relative;
    margin:0 auto;

    the flash file or gif picture remains at the same size even though i have width in percentage not pixels, it`s not width enough for resolutions like 1280x960. can anyone tell me what i`m mising?
    Thank You
    Last edited by Fynnon; Fri 16 Dec '11, 4:28pm.
  • pwhitehead
    Member
    • Jun 2010
    • 75
    • 4.2.X

    #2
    Change the width to 100%
    #banner {
    width:
    100%;
    height:84px;
    position:relative;
    margin:0 auto;
    }

    Comment

    • Fynnon
      Senior Member
      • Jul 2008
      • 123
      • 3.8.x

      #3
      @pwhitehead - thanks for the reply but the problem was not that, i only used that for other reasons

      but everytime i post here i find the solution to my problem
      so here we go again, this is what made my SWF stretch for all resolutions:

      <object width="100%" height="84px">
      <param name="movie" value="header.swf" />
      <param name="scale" value="exactFit" />
      <param name="quality" value="high" />
      <embed src="header.swf" scale="exactFit" quality="high" width="100%" height="84px" /></object>

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...