Setting the content background

hello fellow webdesigners! i have been getting my hands dirty
with webdesigning for the past 3 months which means i am fairly
newto this! i love using adobe dreamweaver and fireworks (still
trying to learn flash!
any way here is what i need help with; a lot of websites have
centered boxes with their content inside them like this one :
http://www.melekvilla.co.uk/
or this one
http://www.trim-star.co.uk/
i want to have my background in on of these boxes. so what i
am currently doing is wrapping a div around my text and then
centering it but what i want is that it stays in one of these long
boxes. i know these boxes are made of repeated background lines so
they fit to the length of the content.
how do i center this background? so that my text will be
centerd on top of the centered box therefor being centered
perfectly on any size of screen...
and how do i insert the bottom background (the rounded bit at
the bottom of the content) on the same page?
or is there a better way to do it?
thanks everyone!
dave

Check your syntax -
style="width: 750px; margin: auto; background-image:
url(blah.jpg);
> If you want to have a static background that is, say
750px wide by 600px
> tall
> and all content stays in it:
This is a poor suggestion - what happens if someone resized
their text?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"leeoffy" <[email protected]> wrote in
message
news:fb7b5e$r0c$[email protected]..
> <div style="width: 750px; margin: auto;
background-image: blah.jpg;
> background-repeat: repeat-y;">
> blah blah blah
> </div>
>
> Then you make your background image 750px wide however
tall you wish and
> it
> will repeat it up and down the page indefinitely.
>
> If you want to have a static background that is, say
750px wide by 600px
> tall
> and all content stays in it:
>
> <div style="width: 750px; height: 600px; margin:
auto; background-image:
> blah.jpg; overflow: hidden;">
> blah blah blah
> </div>
>
> Then, make your background image 750x600 with exactly
what you want in it.
>
> If you want padding from the edge of the image, you use:
>
> <div style="width: 750px; height: 600px; margin:
auto; background-image:
> blah.jpg; overflow: hidden;">
> <div style="padding: 5px;">blah blah
blah</div>
> </div>
>
>
>

Similar Messages

  • Can i set the content of input text in a form layout in the uix page center

    Hi
    i have a simple question, how can i set the content of an input text in a form layout in the .uix page center?
    i saw in the page properties but i didn't found.
    thank you for your help.
    Edited by: Islem on 19 déc. 2008 00:22

    Sirrick,
    If I understand your question correctly, you want to programmatically set how many array elements (clusters) to show. You can do this with the Array properties: Number of Rows and Number of Columns. Please see the attached VI.
    Zvezdana S.
    National Instruments
    Attachments:
    Array_Elements.vi ‏20 KB

  • How do I set the content type ?

    Hi
    I have to upload a file from my Java Application to a remote servlet.
    I have used the HTTPConnection class to connect to the remote servlet and made it call the POST method explicitly.
    How do I set the content type of the file I am uploading from my Java apllication?
    I tried to change the content type in the doPost method. by giving
    req.setContentType("multipart/form-data"); in the doPost.
    It still doesnt work..
    Is there any way to set the content type in the Java application?
    Thanks in advance

    What class is your req variable? If your using a HttpServletRequest, then there is no method req.setContentType("");
    In the HttpServletResponse this is for telling the web browser or receving medium what kind of mime type to expect.
    And what package is the HttpConnection class from?
    I think more precise info is required before this question can be answered.

  • Cfhttp and setting the content-type for a request

    Hi,
    I am trying to set the content-type for a cfhttp request like this (on coldfusion 9):
    <cfhttp redirect="no" method="get" timeout="120" url="http://10.0.0.1/test2.cfm">
        <cfhttpparam type="HEADER" name="Content-Type" value="application/json; charset=utf-8">
    </cfhttp>
    // coding on test2.cfm:
    <cfset x = GetHttpRequestData()>
    <cfdump var=#x#>
    // Output on test2.cfm
    content
    [empty string]
    headers
    struct
    Accept-Encoding
    deflate, gzip, x-gzip, compress, x-compress
    Connection
    TE
    Host
    10.0.0.1:80
    Proxy-Connection
    close
    TE
    trailers, deflate, gzip, compress
    User-Agent
    ColdFusion
    X-REWRITE-URL
    http://10.0.0.1:80/test2.cfm
    method
    GET
    protocol
    HTTP/1.1
    As you can see no content-type is send through. I also tried the sniffer.exe:
    GET http://10.0.0.1:80/test2.cfm HTTP/1.1
    Host: 127.0.0.1
    Proxy-Connection: close
    Connection: TE
    TE: trailers, deflate, gzip, compress
    User-Agent: ColdFusion
    Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress
    Here you can also see that no content-type was passed through. The sniffer should report back
    GET http://10.0.0.1:80/test2.cfm HTTP/1.1
    Host: 127.0.0.1
    Proxy-Connection: close
    Connection: TE
    TE: trailers, deflate, gzip, compress
    User-Agent: ColdFusion
    Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress
    Content-Type: application/json; charset=utf-8
    But is does not, what do i need todo to set the content-type in a cfhttp request.
    Kind regards,
    Nebu

    12Robots - are you sure about your statement that GET method requests cannot have Content-Type headers?  I don't think that that is correct.  I've always thought that it was valid (maybe unusual, but ...) and this W3C link weems to agree, especially in the context of its comment about what Content-Type means in a HEAD method request: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
    The big problem with trying to get around the CFHTTP limitation by using the CGI scope is that the dash is illegal in a CF varname.
    There is a custom tag called CFHTTP5 that getsaround a lot of the CFHTTP limitations, including cookie preservation across multiple requests.  I haven't used it for a long time (CF5), but it is still actively developed.  Costs $50 - http://www.cftagstore.com/tags/cfxhttp5.cfm
    -reed

  • Setting the content type inside the ABAP mapping.

    Hello All,
    Can any one help me by telling me how to set the content-type inside ABAP mapping. I have searched a large no of blogs and help.sap.com for the same.
    My requirement is I want to change the MIME type of the Main Document in side SXMB_MONI so that can change the content type of Main document which is application\xml by default.
    I would appreciate an early response regarding the same.
    Abinash

    Hello Raj,
    The output of my ABAP mapping is a flat file. So when I try to open the file with content type application/xml in the message monitor it shows the file has some error which is natural. The way to get around this problem is change the content type to application\txt from application\xml.
    I am not finding an option to set the content type inside the ABAP mapping for the same.
    Abinash

  • [svn:fx-trunk] 8024: Fixed an injection where setting the 'content' property of Spark text component to a TextFlow would cause you to get a TextFlow nested inside a TextFlow .

    Revision: 8024
    Author:   [email protected]
    Date:     2009-06-19 16:59:25 -0700 (Fri, 19 Jun 2009)
    Log Message:
    Fixed an injection where setting the 'content' property of Spark text component to a TextFlow would cause you to get a TextFlow nested inside a TextFlow.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-21906
    Reviewer: Carol to review
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21906
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as
        flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as

    Well, I've already solved one of the two issues
    In order to display the icons on my buttonbar buttons, I just needed to point at {hostComponent.data.data} instead of {hostComponent.data}. I'm not sure why, but {hostComponent.data} in my skin class is a handle on my instance of ButtonBarButton, not its "data" property. Any explanation is welcomed
    I still have got the first issue though. Oddly enough my design works if I put an mx Image instead of the spark BitmapImage for the client logo. That will do the trick for the moment but I'd prefer to deliver a 100% pure spark component in my prototype, and I can see no reason why BitmapImage works inside my ButtonBarButtons and doesn't otherwise...

  • Setting the Border background color

    Post Author: gravy
    CA Forum: .NET
    Hi,
    Using the API I'm trying to set the Border background color to transparent but I can't. I want to set the background color to match what the designer does when you uncheck the Background option on the Border tab of a TextObjects properties.
    Can anyone help?

    What release are your using?
    do you want to set this dynamically, for one portlet or all. you may what to use
    'Themes'
    "Jorgeana" <[email protected]> wrote:
    >
    Does someone have a sample of setting the portlet border and background
    color ?
    I´m having problems using "setPortletBGColor" !! Tks

  • Using Forms that don't set the content type charset

    The Servlet API 2.3 has a new method, request.setCharacterEncoding(), to
              deal with the fact that almost no browsers set the content type. When I call
              this method passing "Shift_JIS" using weblogic 6.1, it works fine when the
              content type is not set by the browser. That is, after calling
              setCharacterEncoding when I call request.getParameter("testparam") I get the
              correct translated value. However, if the content type is
              "application/x-www-form-urlencoded; charset=Shift_JIS" and I call
              request.setCharacterEncoding("Shift_JIS"), getParameter("testparam") returns
              null.
              Can anyone shed some light on this?
              It looks like I'll have to not set the character encoding if it is already
              set. That, of course, opens the possibility that the character set used for
              translation is different than was used in the form.
              Russ Cole
              [email protected]
              

    It might not be the new 3G network. Though I've heard the major metropolitan cities can have slower responses due to congestion.
    Have you upgraded to the new operating system? Have you tried resetting your phone? You can do that by holding the "Home" and "Power" buttons down together, through the shut down screen and until the apple appears on the screen.
    You might also try this:
    http://www.roughlydrafted.com/2010/07/07/how-to-speed-up-your-iphone-3g-running- ios4/
    It's called a cold reboot.
    Sharon

  • Set the custom background images to default?

    Is there any way to set the custom background image to default instead of manually changing the background image in the phone?

    This was actually discussed some time ago. Please see this link.
    http://www.voipintegration.com/software.html
    See discussion here:
    http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Unified%20Communications%20and%20Video&topic=IP%20Telephony&CommCmd=MB%3Fcmd%3Dpass_through%26location%3Doutline%40^1%40%40.1ddd4505

  • Setting the desktop background image via Powershell

    UPDATE: 
    I found the solution that addressed my problem, which I posted in a post below. Keeping the original post for Internet historical reasons as I the hope this helps someone else later on in their search for a solution. 
    ===============
    I have Bing'ed and I have Google'd and I haven't found a solid answer to setting the desktop wallpaper programmically.  I am trying to do this via PowerShell, but I would be happy for any other language flavor or application to work. 
    Below is the code I have tried to set the desktop background image. This has been scrounged from a few sources across the web. This solution works 25% of the time and I haven't figured out what the cause for success or failure of the execution. Or maybe
    it's neither, but waiting for Explorer to refresh. The only way to see the change 100% is to log out and log back in.
    I am running Windows 8.1 btw. 
    Thank you for looking.
    Function Get-WallPaper()
    $wp=Get-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper
    if(!$wp.WallPaper)
    { "Wall paper is not set" }
    Else
    {"Wall paper is set to $($wp.WallPaper)" }
    Function Refresh-Explorer {
    $code = @'
    private static readonly IntPtr HWND_BROADCAST = new IntPtr(0xffff);
    private const int WM_SETTINGCHANGE = 0x1a;
    private const int SMTO_ABORTIFHUNG = 0x0002;
    [System.Runtime.InteropServices.DllImport("user32.dll", SetLastError=true, CharSet=CharSet.Auto)]
    static extern bool SendNotifyMessage(IntPtr hWnd, uint Msg, UIntPtr wParam,
    IntPtr lParam);
    [System.Runtime.InteropServices.DllImport("user32.dll", SetLastError = true)]
    private static extern IntPtr SendMessageTimeout ( IntPtr hWnd, int Msg, IntPtr wParam, string lParam, uint fuFlags, uint uTimeout, IntPtr lpdwResult );
    [System.Runtime.InteropServices.DllImport("Shell32.dll")]
    private static extern int SHChangeNotify(int eventId, int flags, IntPtr item1, IntPtr item2);
    public static void Refresh() {
    SHChangeNotify(0x8000000, 0x1000, IntPtr.Zero, IntPtr.Zero);
    SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, IntPtr.Zero, null, SMTO_ABORTIFHUNG, 100, IntPtr.Zero);
    Add-Type -MemberDefinition $code -Namespace MyWinAPI -Name Explorer
    [MyWinAPI.Explorer]::Refresh()
    Function Set-WallPaper($Value)
    echo "Setting background to: $value"
    Refresh-Explorer
    Set-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper -value $value
    rundll32.exe user32.dll, UpdatePerUserSystemParameters
    #sleep 1
    rundll32.exe user32.dll, UpdatePerUserSystemParameters
    #sleep 1
    rundll32.exe user32.dll, UpdatePerUserSystemParameters
    #sleep 1
    Refresh-Explorer
    #Stop-Process -ProcessName explorer
    NOTE: I left in a few commented out statements. I found that they do not offer any help in formulating a solution.
    Thank you.

    Great news! I found the solution and all props and credit goes to
    jsd1982 of the XKCD comic
    forum from a post he made in 2007 and some deep search kung-fu Googling on my part. Here is the
    direct link to the post.
    This solution has worked for me 100% of the time on Windows 8. The only gotcha I found (minor detail) was when setting this process to run as a scheduled task, I had to run it as elevated privileges for the code to compile in memory. Running this function
    from PowerShell at the command prompt was fine. 
    NOTE: The code below is a slight trimmed down version posted by jsd1982 to just set the desktop wallpaper. I removed the image fetching from the Internet and the color inversion.
    # Credit to jsd1982
    function Compile-Csharp ([string] $code, $FrameworkVersion="v2.0.50727",
    [Array]$References)
    # Get an instance of the CSharp code provider
    $cp = new-object Microsoft.CSharp.CSharpCodeProvider
    # Build up a compiler params object...
    $framework = [System.IO.Path]::Combine($env:windir, "Microsoft.NET\Framework\$FrameWorkVersion")
    $refs = new-object Collections.ArrayList
    $refs.AddRange( @("${framework}\System.dll",
    # "${mshhome}\System.Management.Automation.dll",
    # "${mshhome}\System.Management.Automation.ConsoleHost.dll",
    "${framework}\system.windows.forms.dll",
    "${framework}\System.data.dll",
    "${framework}\System.Drawing.dll",
    "${framework}\System.Xml.dll"))
    if ($references.Count -ge 1)
    $refs.AddRange($References)
    $cpar = New-Object System.CodeDom.Compiler.CompilerParameters
    $cpar.GenerateInMemory = $true
    $cpar.GenerateExecutable = $false
    $cpar.CompilerOptions = "/unsafe";
    $cpar.OutputAssembly = "custom"
    $cpar.ReferencedAssemblies.AddRange($refs)
    $cr = $cp.CompileAssemblyFromSource($cpar, $code)
    if ( $cr.Errors.Count)
    $codeLines = $code.Split("`n");
    foreach ($ce in $cr.Errors)
    write-host "Error: $($codeLines[$($ce.Line - 1)])"
    $ce |out-default
    Throw "INVALID DATA: Errors encountered while compiling code"
    [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") > $null
    [System.Reflection.Assembly]::LoadWithPartialName("System.Runtime") > $null
    # C# code to post to wallpaper
    $code = @'
    using System;
    using System.Drawing;
    using System.Drawing.Imaging;
    using System.Runtime.InteropServices;
    using System.IO;
    using System.Net;
    using Microsoft.Win32;
    namespace test
    public class Wallpaper
    const int SPI_SETDESKWALLPAPER = 20 ;
    const int SPIF_UPDATEINIFILE = 0x01;
    const int SPIF_SENDWININICHANGE = 0x02;
    [DllImport("user32.dll", CharSet=CharSet.Auto)]
    static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni) ;
    public static void SetWallpaper(string uri)
    System.IO.Stream s = new WebClient().OpenRead(uri);
    Image img = System.Drawing.Image.FromStream(s);
    Bitmap copy = new Bitmap(img.Width, img.Height);
    Graphics g = Graphics.FromImage(copy);
    Rectangle rect = new Rectangle(0, 0, img.Width, img.Height);
    g.DrawImage(img, rect, 0, 0, img.Width, img.Height, GraphicsUnit.Pixel);
    g.Dispose();
    img.Dispose();
    // Save to a temp file:
    string tempPath = Path.Combine(Path.GetTempPath(), "wallpaper.bmp");
    copy.Save(tempPath, System.Drawing.Imaging.ImageFormat.Bmp);
    RegistryKey key = Registry.CurrentUser.OpenSubKey( @"Control Panel\Desktop", true ) ;
    key.SetValue(@"WallpaperStyle", 1.ToString( ) ) ;
    key.SetValue(@"TileWallpaper", 0.ToString( ) ) ;
    SystemParametersInfo( SPI_SETDESKWALLPAPER,
    0,
    tempPath,
    SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE );
    function Set-Wallpaper([string] $imgurl)
    compile-CSharp $code
    [test.Wallpaper]::SetWallpaper($imgurl)

  • Save Dialog in Office Application does not set the Content Type to the one selected on Document Creation.

    We have a Library that supports 4 Content Types  ("Content Type 1","Content Type 2","Content Type 3","Content Type 4")
    The user clicks new and selects "Content Type 3"
    Word is started
    The user edits the document
    Clicks Save
    "Choose Content Type" dialog is shown set to the Content Type "Content Type 1" because the Document content type is ordered as First (which also means Default)
    What is expected is the "Choose Content Type" dialog to show "Content Type 3" as selected
    Any ideas?

    Hi,
    According to your description, there is a library with four content types, you create a document with one of the content types, click save button in Office application,
    then a “Choose Content Type” dialog will show up for selecting a content type.
    I tried to reproduce as below:
    1. Create a library with four content types;
    2. In the ribbon of this library, “FILES”->”New Document”->”Content Type 1”, then the Office application with the predefined template will be opened for editing;
    3. Click the “Save” button, choose the save path as the current library, click “OK” to finish the process;
    4. Refresh the library in browser, the newly created document appears there.
    In my test, there is no “Choose Content Type” dialog showing up when save the document in Office application.
    I would suggest you provide more details about how to reproduce this issue(screenshot would be better) for further research.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Setting the TabbedPane background color

    Hello everyone,
    The following code does not set the tabbedpane's background color:
    class LIB
    public static void main (String ... args)
    javax.swing.JTabbedPane t=new javax.swing.JTabbedPane();
    t.setOpaque(true);
    t.setBackground(java.awt.Color.RED);
    t.setForeground(java.awt.Color.GREEN);
    t.add(new javax.swing.JLabel("HELLO"));
    t.setTitleAt(0,"Tab 1");
    javax.swing.JFrame f=new javax.swing.JFrame();
    f.getContentPane().add(t);
    f.pack();
    f.setVisible(true);
    }What is wrong with thid code ??
    Thank you

    You had an answer with in the first 10 minutes. And your post was on one of the three most popular forums.10 minutes, that is true. But then I sent a reply on Dec 6, 11:43 AM and did not get an answer until Dec 8, 5:44 AM (that is after I had already posted the same problem on another forum).
    Also, if you ever do need to post the same question on another forum at least put a link between the two.Since I am new to the forum, I don't know how to do that. Would you be kind enough to tell me how.
    Thank you

  • ListCellRenderer and JList... cannot set the selected background?

    The following code:
         public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus )
              setText( "test" );
              setBackground( isSelected ? list.getSelectionBackground() : list.getBackground() );
              setForeground( isSelected ? list.getSelectionForeground() : list.getForeground() );
              return this;
         }is having problems. It does not set the background color for the selected item. It does, however set the foreground. If I don't use my own cell renderer, the background changes as expected. I can't figure out why - I can set the border of the JLabel that is returned, the foreground, the icon, but not the background.
    What am I doing wrong?

    I would have to check, but from memory a cell is a JLabel not a JTextField. The diff is that a JLabel is transparent so the background colour is normaly that of the JPanel. In a JTable I presume the cell has some default background colour based on the table, so maybe you need to use a JTextField to define the field.
    Hope that helps,
    James.

  • How do I set the motion background?

    If I have a timeline that is 1:30:00 in total length and for the motion background I want to start at 1:15:00 of the timeline and run for 10 seconds and then loop back to that point, what should I set the Duration and Loop Points at?

    I guess I'm not sure what you are saying.  Motion Backgrounds apply to Menu's not Timelines.
    Assuming you want a motion background for your menu, you would have to
    1.  Cut the ten seconds out of your 1min30sec clip in AE or Premiere as Bill suggested and export it as .avi
    2.  Import this clip as an asset into Encore and alt-drag it onto your menu to replace the static background.
    3.  No need to set duration or loop point.
    If you mean you want a certain 10 seconds of video playing in a video button, then
    1.Set the poster frame where you want to start on the timeline and set the duration of the menu to 10 sec.
    I hope this makes sense.
    JOhn Rich

  • When I set the content settings to block images and try to navigate certain sites, the browser freezes.

    I can stop the browser from displaying images from websites by clicking on the Firefox icon, then clicking on Options from the drop-down menu, then clicking on options from the new drop-down menu, then clicking on the Content tab, and finally un-exing the box next to "Display images." Now the browser won't display images. But when I visit certain sites while in this mode, such as Yahoo! or Goodsearch, and try to navigate within these sites, I find that the browser has frozen up. There seems no way to unfreeze it except to press Ctrl+Alt+Delete, log off, log on again, and unblock images before proceeding further. How do I prevent this freezing problem?

    Disable Addons like Adblock plus.
    We're sorry to hear that your Firefox seems to be crashing when you open it. Please perform the following steps to give us a crash report ID that helps us find out more about the cause of the crash.
    #Press the following shortcut to get a Run window: [Windows] + [R]. This should bring up a window that contains a text field.
    #In that text field, enter %APPDATA% and press Enter. An explorer window should open.
    #From that explorer window, double-click on the ''Mozilla'' folder, then double-click on ''Firefox'' and then on ''Crash reports''. Double-click on ''submitted''.
    #Now, you should see a list of files that contain reports. Go to ''View'' > ''Arrange Icons by'' > ''Modified'' to get the most recent files at the top of the window.
    #Open the most recent 5 files with a text editor and copy the IDs.
    #Paste each ID into the reply window on the forums.
    Thanks in advance!
    You can find more information and troubleshooting steps in the [[Firefox crashes]] article.

Maybe you are looking for