Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1

    WD6 How to fix a static object using .css

    Required: Web Designer 6
    Download File: static-object-with-css.web (104.5 KB)
    Demo


    How to fix a static object using .css

    ==============================
    Create a placeholder and name it <head>
    In the code area add:

    <style style="text/css">
    #fixed{
    position:fixed;
    }
    </style>


    Create the graphic to be fixed and name it: fixed
    Also add the name: NoPageClipping to the same graphic
    ==============================



    .
    Attached Files Attached Files

  2. #2
    Join Date
    Aug 2007
    Location
    Maghull UK
    Posts
    6,202

    Default Re: How to fix a static object using .css

    Thanks Steve One problem though, why is it displacing like this .... ?
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	float.jpg 
Views:	136 
Size:	24.2 KB 
ID:	73084  
    JOHN -XaReg (FB) XaReg (DB - ignore prompt to register)
    Windows 10 [Anniversary] pro Intel Pentium CPU G630 @ 2.70Ghz RAM: 4 GB; 64-bit x64

  3. #3

    Default Re: How to fix a static object using .css

    No problem at all John. It's exactly where it is supposed to be
    The static object is supposed to be fixed (stuck) top left of the browser window always. No matter how wide the browser window or the scrolling of the general page content.

  4. #4
    Join Date
    Aug 2007
    Location
    Maghull UK
    Posts
    6,202

    Default Re: How to fix a static object using .css

    Ah, gotcha! Thanks. Thought it was something I'd done
    JOHN -XaReg (FB) XaReg (DB - ignore prompt to register)
    Windows 10 [Anniversary] pro Intel Pentium CPU G630 @ 2.70Ghz RAM: 4 GB; 64-bit x64

  5. #5

    Default Re: How to fix a static object using .css

    Maybe this makes more sense John ?

    http://talkgraphics.magix.net/public...signer/static/

  6. #6
    Join Date
    Aug 2007
    Location
    Maghull UK
    Posts
    6,202

    Default Re: How to fix a static object using .css

    Yeah, I get the idea now ... just not very awake yet. Thinking on it, object could be very useful for me as a floating 'home' - or wherever - link on long pages of text instead of getting user to scroll back up or down or using space on the page itself. Thanks
    JOHN -XaReg (FB) XaReg (DB - ignore prompt to register)
    Windows 10 [Anniversary] pro Intel Pentium CPU G630 @ 2.70Ghz RAM: 4 GB; 64-bit x64

  7. #7
    Join Date
    Mar 2009
    Posts
    4,522

    Default Re: How to fix a static object using .css

    Thanks very much, Steve, very useful!

  8. #8
    Join Date
    May 2009
    Location
    Germany
    Posts
    145

    Default Re: How to fix a static object using .css

    Hi,
    keep in mind, that the fixed position is depend of the position of the graphic on your page. If you place the graphic at x=200px and y=200px on Sledgers example, the fixed graphic will be placed at 198px from left and 161px from top of the browser window (viewport). You can place the graphic somewhere on your page and override this position if you place the following code in your <head> placeholder:

    <style style="text/css">
    #fixed{
    position:fixed;
    top:200px !important;
    left:200px !important;

    }
    </style>
    This place the fixed graphic at 200px from left and 200px from top.

    Sebastian

  9. #9
    Join Date
    Jun 2010
    Posts
    24

    Default Re: How to fix a static object using .css

    Xara Xtreme can do ???

    sample please

  10. #10

    Default Re: How to fix a static object using .css

    Sorry, no.
    WD6 and above

    EDIT: Actually you can use this if you have the WD5 tweakset installed in Xtreme 5. You need the nopageclipping tweak.

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •