Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    May 2019
    Posts
    3

    Default Problem scaling background to browser width

    Hello,
    I am new to Xara, and I wanted to re-create the website that I made in the WYSIWYG web designer I was using previously, but I have run into a snag almost immediately.
    I have 2 bands of color on the top and bottom of the page that span the full width of the browser. I was not able to figure out how to do this, so I turned to the manual and the internet. I found tutorials for previous versions of Web Designer with "stretch to page width" and "web sticky/stretchy" context options, but those are not available in my version. Searching the manual for these terms brings up nothing relevant.

    So please, how do I stretch an object to full browser width?

  2. #2
    Join Date
    Apr 2010
    Location
    Kildare, Ireland
    Posts
    906

    Default Re: Problem scaling background to browser width

    What version are you on? If you're on a really old version it's worth upgrading for the sticky/stretchy options.
    XT-CMS - a self-hosted CMS for Xara Designers - Xara + CMS Demo with blog & ecommerce shopping cart system.

  3. #3
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,910

    Default Re: Problem scaling background to browser width

    Welcome to TG girlfreind.

    If you don't have Stretchy option, then the simplest way would to do this on the pasteboard layer. Lock all other layers and Ctrl+A You will get one rectangle selected. Fill this with one colour. Ctrl+K (Clone) this rectangle, fill with second colour. Zoom way out to 10%, then reduce the height to half page height.

    Preview
    Attached Files Attached Files
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  4. #4
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,774

    Default Re: Problem scaling background to browser width

    If you right click one of the bands, do you not see 'Web Sticky/Stretchy' at the bottom of the menu? (sticky/stretchy makes me chuckle...I'm such a child)

  5. #5
    Join Date
    May 2019
    Posts
    3

    Default Re: Problem scaling background to browser width

    Hello everyone, thank you for your feedback so far. I am running version 15.1.1.54379. I do not see the web sticky/stretchy option, which is why I came here.

    edit: When opening the .xar file linked above in Designer Pro X, I was able to find the sticky/stretchy option. Should I use Designer Pro X instead of Web Designer for my sites?

  6. #6
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    927

    Default Re: Problem scaling background to browser width

    If it is only the sticky and stretchy features you need then Web Designer Premium would also be an option, see comparison:
    https://www.xara.com/us/web-designer/compare/
    But you would miss some other Designer Pro features, see comparison here:
    https://www.xara.com/us/designer-pro/compare/

  7. #7
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    927

    Default Re: Problem scaling background to browser width

    If it is just about single color rectangles you could also work around the missing stretchy functionailty with some little javascript code. I'm not sure if the standard web designer offers names and code at the website or page head and body sections. But if it does you could check the attached example.

    As a summary: It uses a name attached to the horizontal rectangles (the name in concrete is htmlclass=to_full_width which in fact does nothing more than adding a class to the exported html tag). And there is some code added to the website head section, that when exported to the website does something with the rectanges that have the name attached.
    In fact it just moves the left edge to the left of the window and changes the width to the width of the window. Okay there is a little bit more to it, but only the fact that when narrowing the browser window to less than the document width, then the code compensates this by doing the calculation based on the document width instead of the browser width.

    I hope this babbling didn't distract you from checking it out. And if you have questions on how to use it or it doesn't work with your version (I use v12.6) then just ask again for more explanation or a correction to your version (but you would have to help me out with the exported HTML of your version).
    Attached Files Attached Files

  8. #8
    Join Date
    Jul 2007
    Location
    Brockville, Ontario, Canada.
    Posts
    4,619

    Default Re: Problem scaling background to browser width

    Quote Originally Posted by girlfiend View Post
    ... Should I use Designer Pro X instead of Web Designer for my sites?
    As far as I'm aware, if you have Designer Pro, then there's no reason to use (or even own) Web Designer, except if the version numbers are different. if the Web Designer is newer, then there may be features not in your version of Designer Pro. It always used to be that Designer Pro had ALL the features of ALL the other programs and then more. I suspect that that is still the case, Designer Pro should be able to do EVERYTHING ALL the other programs do.
    Keith
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    There are 10 types of people in this world .... Those who understand binary, and those who don't.

  9. #9
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,805

    Default Re: Problem scaling background to browser width

    Quote Originally Posted by siran View Post
    If it is just about single color rectangles you could also work around the missing stretchy functionailty with some little javascript code. I'm not sure if the standard web designer offers names and code at the website or page head and body sections. But if it does you could check the attached example.
    Quote Originally Posted by siran View Post
    As a summary: It uses a name attached to the horizontal rectangles (the name in concrete is htmlclass=to_full_width which in fact does nothing more than adding a class to the exported html tag). And there is some code added to the website head section, that when exported to the website does something with the rectanges that have the name attached.
    In fact it just moves the left edge to the left of the window and changes the width to the width of the window. Okay there is a little bit more to it, but only the fact that when narrowing the browser window to less than the document width, then the code compensates this by doing the calculation based on the document width instead of the browser width.
    I hope this babbling didn't distract you from checking it out. And if you have questions on how to use it or it doesn't work with your version (I use v12.6) then just ask again for more explanation or a correction to your version (but you would have to help me out with the exported HTML of your version).
    siran, not had a chance of checking over your code but if you add a Page background colour, the stretch stops at the edges of the page and not to the viewport width; it is still OK for a background added to the Pasteboard.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  10. #10
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,805

    Default Re: Problem scaling background to browser width

    Quote Originally Posted by girlfiend View Post
    Hello everyone, thank you for your feedback so far. I am running version 15.1.1.54379. I do not see the web sticky/stretchy option, which is why I came here.
    edit: When opening the .xar file linked above in Designer Pro X, I was able to find the sticky/stretchy option. Should I use Designer Pro X instead of Web Designer for my sites?
    I have Xara Web Designer Premium v15.0, which does have Sticky Stretchy. Web designer is a very cut-down version.

    I would use Xara Web Designer Premium over Xara Designer Pro for website design as it is far cheaper and has 90+% of what Designer Pro does for website construction.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

 

 

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
  •