How do you crop a diagonal pattern in a way that makes it tileable for web?

At the moment I have just given up and made one huge image and kept it at around 800kb for a web background. However, I realize this is not ideal. I can't figure out how to make this pattern tileable. I figure there's some crazy math I have to calculate to figure in the crop size so that the cut off for the images fit perfectly, but I have no idea how to do that. Has anyone run into this situation before and found a solution?

You're doing it wrong! :-)
Use css to solve this problem. Although there is no css property to rotate a background image, you can apply a neat trick to create the same effect.
1) save your file as a regular rectangular pattern (17.6kb!) :
2) save this in your images folder in your site root.
3) to create a rotated background for your page, use this:
body {
    position: relative;
background: url('../img/bgrot.jpg') 0 0 repeat;
body:before {
    content: "";
    position: fixed;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    z-index: -1;
    background: url('../img/bgrot.jpg') 0 0 repeat;
    -webkit-transform: rotate(-20deg);
    -moz-transform: rotate(-20deg);
    -ms-transform: rotate(-20deg);
    -o-transform: rotate(-20deg);
    transform: rotate(-20deg);
Done! Far easier, and more flexible. To see it work, check out the test I made at http://estructor.altervista.org/rotbg/test.html
You can inspect the code in your browser.
PS css transformations are unsupported in IE 8 - the background will still show, though (non-rotated). For IE8 you will might want to use a conditional comment in your html to create a conventional background pattern instead.
*update* I updated the example with a page wrapper element that uses the same background, but rotates it at a different angle. The trick here is to create a sufficiently large element that covers the entire box. Then you will have to set overflow:hidden; to hide the overflow so it contains the background pattern inside that box. It takes a bit of tinkering to get the working values for height and width, because it is slightly dependent on the actual content.

Similar Messages

  • How do you crop and save a cropped image

    How do you crop and save a cropped image in PS Touch?

    This forum does not deal with any of the Touch applications.
    Try here:
    http://forums.adobe.com/community/photoshop_touch_for_phone
    or here:
    http://forums.adobe.com/community/creative_cloud_touch_apps/adobe_photoshop_touch

  • How do you crop a vertical slide to a constraint size without turning it on it's side? iPhoto 6 automatically rotated the crop box for a vertical slide (picture).

    How do you crop a vertical slide to a constraint size without turning it on it's side? iPhoto 6 automatically rotated the crop box for a vertical slide (picture).

    Select the aspect ratio first.
    Then go back to the same menu and go to the bottom and selectConstrait as portrait.
    OT

  • How can you shrink the size of an upright picture to make it smaller without losing any of the detail in it??? At the moment, if I view them on my laptop, landscape photos fill the screen, but portrait photos only show the middle part.

    How can you shrink the size of an upright picture to make it smaller without losing any of the detail in it (in Slideshow)??? At the moment, if I view them on my Mac Laptop, landscape photos fill the screen, but portrait photos only show the middle part, so I loose the top and bottom of the picture.  Have tried cropping, but that means I lose top and bottom part of the picture, so that is not the answer!!

    Homestly haven't a clue what's going on there. 
    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

  • How do you delete an email address from your iPhone that's not in your contacts?

    How do you delete an email address from your iPhone that's not in your contacts?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • How do you suppress page numbers. I am trying to print a screenplay for the first time since switching to Pages and I can't suppress Page

    How do you suppress page numbers. I am trying to print a screenplay for the first time since switching to Pages and I can't suppress Page #1 without making the rest of the pages inaccurate, as page #1 is the Title Page. Does anyone have any suggestions?

    When you signed to be able to post in the forums, you were urged to read and accept the Terms of Use ruling these forums.
    They claim :
    The contents of the "More Like This" box prove that applying the rules you would have get the wanted explanations without creating this new thread.
    Yvan KOENIG (VALLAURIS, France) mardi 26 avril 2011 10:04:03

  • Hi there how are you guys out there of this forum? I got a question for y'a

    Hi there how are you guys out there of this forum? I got a question for y’all
    I wanted to know how I could record different folders using iTunes
    Cause when recorded 2000 thongs on the DVD
    There were 2000 songs to go through
    So I really wanted to have had folders and then the music recorded inside them
    So I could get right to where I wanted real quickly
    Could anyone please teach me how to do that real quickly?
    Can we do it with iTunes?
    I know we can do it with Nero.

    1) Go to file, select new playlist. Creat the playlaist.
    2) Download your music into iTunes.
    NOTE: CHECK 'Recently Added' before you download your music.
    If the select boxes has a check in them, turn it off by
    holding down the 'ctrl' key and selecting one of the
    checked boxes. This shold turn off all the checks.
    It would be better to clear 'Resently Add' of all
    previous downloads, but I don't know how to do that
    yet.
    3) under 'PLAYLIST' on the right, select 'Recently Add'.
    all of your song should show there with a check in the selection
    box.
    4)Hold the shift key and select the frist (selete records name),
    then the last recorded tune. All of the recordings shouls light
    up blue.
    5) While holding the 'shift' key, drag one of the records to your new
    playlist. All of the blue highlighted song will transfer to the new
    playlist.

  • HT5622 How do you get rid of an old Apple ID that hasn't been used in a while in which you no longer remember the password and the email account no longer exists?

    How do you get rid of an old Apple ID that hasn't been used in a while in which you no longer remember the password and the email account it's tied to no longer exists?

    The password will not be sent to you, because Apple does not know it. They will send a link where you can reset the password. It will be sent to your Rescue email address, not the iCloud email address. If you don't have one contact Apple Account Security and they can reset it for you: http://support.apple.com/kb/HT5699

  • How do you change the position of email sender so that it's on the left (sender[from], subject and date received)

    How do you change the position of email sender so that it's on the left (sender[from], subject and date received)

    In the Thread Pane where your messages are listed?
    You see that bar with the labels "From", "Subject", "Date" and so on? Well, they are buttons. You can click on them to sort your messages. You can also drag them with the mouse left and right to reposition them, and you can drag their ends to change the column widths.
    These are standard computer actions; you can do all of this in Windows Explorer ("My Computer") too.
    In Thunderbird, a right-click on any of these buttons will reveal a pop-up menu where you can select and deselect the columns to control what is shown.
    More here: http://www.ramsden.org.uk/8_How_to_sort.html

  • How do you get a word and character count of a document in Pages for Mavericks

    How do you get a word and character count of a document in Pages for Mavericks?

    Hi jonathan,
    I struggled with this one as well, as i'm finishing up a PhD thesis and word counts are incredibly important. Through trial and error i found out that words like 'e.g.' and 'i.e.' count as two words and an ampersand (&) doesn't count at all. That being said, i didn't like the fact that the word count always included footnotes and i was dismayed that i couldn't get an accurate count of words in the main body of my text. That all disappeared yesterday when, by chance, while i was copying a completed chapter and pasting it into my main document, i discovered that Pages can indeed give you an accurate word count excluding the footnotes!  Here's all you need to do:
    1. In pages 5.2, make sure that the Word Count function is first enabled by selecting View --> Show Word Count from the Pages Menu Bar. (If it's already enabled, it will read View --> Hide Word Count, so if that's what it says, then no need to do anything.)
    2. Once enabled, check the Word count that's currently showing at the bottom of the page. That's the word count including your footnotes.
    2. Now, place your cursor anywhere within the current document, then hit command+A (for Select All).
    3. Viola! Your word count now shows the actual number of words within the body of the text only, excluding footnotes!
    Hope that helps!

  • How do you change size of text cursor or 'insertion point' in adobe cc for mac?

    how do you change size of text cursor or 'insertion point' in adobe ID cc for mac?  I have looked everywhere.  It's possible in Windows and Word but not in Mac.  Please help.  I spend half my time trying to find that blinking upright bar.

    Thanks for your note but it’s still a skinny rod that seems to disappear.  Why can’t it become a little thicker so it doesn’t disappear no matter what size I have set the screen?  My poor old eyes aren’t what they used to be.  I do appreciate your answering and I’ll enlarge the screen so the blankety-blankety blinking rod is at least visible.  Nancy
    how do you change size of text cursor or 'insertion point' in adobe cc for mac?
    created by Peter Spier in InDesign - View the full discussion
    Cursor size is governed by the type size and will be be larger or smaller on screen depending on how close you are zoomed in.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6729964#6729964
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in InDesign by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • HELP!!!! How do you clear up some or more of the yellow Other in iTunes for iPhone?

    HELP!!!! How do you clear up some or more of the yellow Other in iTunes for iPhone? To Free up more room on your iphone?

    A  ' Large Other ' usually indicates Corrupt Data...
    First Try a Restore from Backup... But... if the Large Other Persists, that is an Indicator of Corrupt Data in the Backup... Then a Restore as New is the way to go...
    Details Here  >  http://support.apple.com/kb/HT1414

  • How do you remove an existing account from an Ipad that is trying to be activated.

    How do you remove an existing account from an Ipad that is trying to be activated??

    The previous user should have done this.
    What to do before selling or giving away your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT5661
    Activation Lock: Removing a device from a previous owner’s account
    http://support.apple.com/kb/TS4515
    Where did you get the iPad - from a friend, eBay, other?
     Cheers, Tom

  • How do you fix Error 2753. The File 'acrosup64.dll is not marked for installation. when trying to update

    how do you fix Error 2753. The File 'acrosup64.dll is not marked for installation. when trying to update?

    i have trid from the adobe website and from the auto update notice, however
    none have been successful. i am running windows 8.1 and i have another pc
    running the same 8.1 and that one has successfully updated.
    Philip P Copley
    P.O.Box 3155
    Norwood 5067
    South Australia
    [email protected]
    (08) 8431 6885
    0401 686 087

  • How do you Customize the weather on the home page and make it default to that setting? I have Customize several times and it keeps changing back to McLean, VA in English

    How do you Customize the weather on the home page and make it default to that setting? I have Customize several times and it keeps changing back to McLean, VA in English.
    [email protected]

    '''''What''''' webpage do you have set as your homepage? <br />
    Are you saving cookies for that page?

Maybe you are looking for

  • Problems with pacman applet, and advice on a gaming portfolio

    Hi I recently made a pacman applet, im having a few problems with it though, the first time the applet is run on a browser, the ghosts(represented by squares) often dont appear or if they do, they are stuck in walls, this never happens when i run off

  • Some child chms don't display topic in topic pane when TOC item is clicked

    Okay. I'm not sure what's going on. We have a master project and various sub-chms that get merged into the TOC of that master project. We have a fairly new sub RH project named "Toolkit Modules" that generates three additional sub chms that are also

  • How can I keep a bean alive forever through out the live of container

    I want to load some important information from DB (which takes long time to calculate) into memory at the start of the app and refresh it periodically and keep it in memory for all jsp/servlets to use. - Environment Tomcat / JDK 1.5x I was able to do

  • Pls help: R16 AccountId Missing?!

    We have been using the same code for almost a year. Recently it stopped working. As far as i know these are the changes that were made (told to me by administrator): 1. The instance was upgraded by OnDemand to R16 2. Authentication Type changed to "U

  • Adobe Reader X on iPad

    I have downloaded Adobe Reader X on an iPad in order to view electronic signatures already completed on documents.  When I "open with" acrobat, the file is stored on the iPad in the "Documents" section and I need to be able to remove those for confid