Image overlapping and aligning

Hi,
I'm trying to add 2 white lines ontop of my #header picture. I've managed to make them overlap, but I can't seem to move them where I want them to be.
I'll post my code below, but since I don't have a website, you wont be able to see the picture so I'll be posting a picture on how it looks and how I want it to look below my code.
Do not hesitate if you feel like commenting on other parts of my code, I do not understand the placement logic in css stylesheet yet...
Here's my css stylesheet code:
@charset "utf-8";
/* CSS Document */
body {
font:"Times new Roman";
.meny{
padding-bottom:100;
font-size:38px;
h1{
color:#FFF;
float:right;
font-size:88px;
padding-right:32px;
a{
color:#FFF;
font-size:28px;
text-decoration:none;
    margin-left:33px;
margin-right:0px;
padding-right:24px;
a:hover{
color:#d8d8d8;
text-decoration:underline;
#page{
background:#d8d8d8;
position:absolute;
top:0px;
left:0px;
width:1024px;
height:768;
#top{
background:#d8d8d8;
position:absolute;
top:0px;
left:0px;
width:1024px;
height:142px;
#line{
background-image:url(Images/Line.jpg);
top:162px;
left:25px;
height:6px;
width:378px;
z-index:1;
#line2{
background-image:url(Images/line2.jpg);
top:187px;
left:100px;
height:5px;
width:379px;
z-index:2;
#leftheader{
background-image:url(Images/Header.jpg);
position:absolute;
top:142px;
left:0px;
width:700px;
height:27px;
padding-top: 91px;
padding-bottom: 38px;
z-index:3;
#rightheader{
background-image:url(Images/Header.jpg);
position:absolute;
top:142px;
left:667px;
width:357px;
height:140px;
padding-top:16px;
z-index:3;
#bottom{
background:#d8d8d8;
position:absolute;
top:298px;
left:0px;
width:1024px;
height:468px;
#venstre{
background-color:#FFF;
position:absolute;
top:26px;
left:33px;
width:608px;
height:357px;
#hoyre{
background-color:#FFF;
position:absolute;
top:26px;
left:667px;
width:323px;
height:430px;
Here's my html code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Webside</title>
<link href="Stilark backup.css" rel="stylesheet" type="text/css" />
</head>   
<body>
<div id="page">
<div id="top"></div>
    <div id="leftheader">
    <div id="line"></div>
    <div id="line2">
    </div>
    <a href="Webside.html">Home</a>
    <a href="Webside.html">Gimmy</a>
    <a href="Webside.html">Carina  </a><a href="Webside.html">Bilder</a>
    <a href="Webside.html">Linker</a>
    </div>
    <div id="rightheader">
    <h1>Webside</h1>
  </div>
<div id="bottom">
      <div id="venstre">
</div>
     <div id="hoyre">
     </div>
</div>
</div>
</body>
</html>
That white line you see here is my two whitw lines, they're just placed right above each other and the image is kinda small...
and this is how I want the 2 lines to be placed:

I might've thought out a solution for my problem. The padding in my #leftheader is the problem why I can't place my lines where I want them. What I think I need to do is to add my lines inside the #leftheader before I add my links, so that I can use spacing to place my links where I want them after I've added the lines. But earlier on I've had troubles when I wanted to align my links to the bottom of my #leftheader, and that still pussles me why I couldn't do so.
If I do add something inside my #leftheader and try to align it top, right, bottom, left etc, shouldn't they be aligned according to the outerlines of my #leftheader? (that's what I tried to do, but since i didn't get it to work, I added "padding" to place the links where I wanted them to be) I might've tried to align my links in the wrong place inside my code, anyway I'll try to solve the problem with what I just came up with.

Similar Messages

  • Problem with image scaling and aligning to the MC bounds

    HI
    I have problem with my custom class.
    For example if image is loaded into the
    holder_mc inside of
    loader_mc, and if the loaded image is bigger than the
    loader_mc, then I want it to scale it down to match
    loader_mc bounds.
    It is something similar to Loader class...
    I've copied this code outside of Loader.as file and modifyed
    it, but its not working...
    I'd realy appreciate that if you could find any mistake or
    any code similar to this...
    Thanks in advance and sorry for my bad english...
    mloncaric

    Anyone please?:(

  • Is there a way of aligning the images in iweb photoalbums other than have them be a square?I have them at same height and resolution but htere is a default that shrinks them and aligns them at the bottom.Thanks.

    Is there a way of aligning the images in iweb photoalbums other than have them be a square?I have them at same height and resolution but htere is a default that shrinks them and aligns them at the bottom.Thanks.

    So how did you do it?
    by understand what iweb widgets do, in this case setting gridEntry widget's scalMode preference from fill to fit.
    then reset the displayed image, so it fits in the display area even if it's portrait aspect.
    however, i found some glitches in gridEntry widget that's quite strange... but all fix-able.
    perhaps, iweb experts (whose had poked at my example) here can chime in.

  • IOS6... How do I see the full screen when watching youtube videos and second the map quality is very poor, foggy most of the time and images overlap to each other... Can I restore to IOS6 if these problems can not be solved?

    I just upgraded to IOS6 and I have some difficulties that I never had on IOS5:
    How can a see the full screen when watching youtube. Address bar is always in view.
    Maps are foggy and some images overlap to eachother.
    If these problems can not be solved, how do I downgrade back to IOS5?
    Regards,
    Luis

    Luis757 wrote:
    If these problems can not be solved, how do I downgrade back to IOS5?
    Regards,
    Luis
    No, there is no legitimate way to downgrade iOS to an earlier version.
    Be patient, Apple will eventually get around to fixing the "bugs" in iOS 6.
    You can leave feedback here: Apple Feedback.

  • Rotated image overlaps other controls

    Hi, I am working on an AIR app involving images. One of the functionalities is viewing as well as rotating images. I made a simple test app to illustrate this portion:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
        <mx:Script>
            <![CDATA[
                private function rotate():void
                    var bitmap:Bitmap = Bitmap(img.content);
                    var matrix:Matrix = bitmap.transform.matrix;
                    var centerX:Number = bitmap.width/2;
                    var centerY:Number = bitmap.height/2;
                    matrix.translate(-centerX, -centerY);
                    matrix.rotate(90*Math.PI/180);
                    matrix.translate(centerY, centerX);
                    bitmap.transform.matrix = matrix;
            ]]>
        </mx:Script>
        <mx:Text width="100%" text="Some text"/>
        <mx:Image id="img" width="100%" height="100%" source="test.jpg" horizontalAlign="center" verticalAlign="middle"/>
        <mx:Button label="rotate 90" click="rotate()"/>
    </mx:WindowedApplication>
    The application window has text on the top and a button on the bottom, with the image in the middle. Each click of the button rotates the image by 90 degrees.
    On launch, the app works great. It fetches the image file and fits it to the Image container. As I resize the application, the image also resizes and maintains the position relative to the other controls. Top text and bottom button are where they should be. All good. Let's assume the image is landscape/wide. After I perform the rotate 90 degrees by clicking the button, although the image is rotated and now in portrait orientation, the bottom portion of the image is now out of the image boundary and overlapping the button.
    Is there a way to tell the image to fit the content to the container again? Basically, re-layout the whole thing as if the image is in this new orientation.
    I suppose I can try to figure out a change in scale and resize the image, but I am not sure if this will hold when the user resizes the application. Also, the rotated image is now rather far to the left, as the "top left" corner is where a landscape image would be. For a portait orientation that's centered horizontally, it should be further to the right. I suppose I can also come up with some formula to center the rotated image. It just seems that the application already has all this logic built in, as it did exactly what I wanted when the image was loaded initially. If I can just ask the application to do it again. Note that similar issue occurs if the image starts out in portrait orientation and is rotated to landscape (too far to the right).
    Thanks in advance for the help.
    Will

    Thanks Sheila and Arnis,
    Today I opened the project to try different zoom settings and the problem has vanished; I get the correct arrow at zooms of 100, 120 and 140%.
    Likely a bug somewhere deep in Frame's innards. Anyway we've ordered TCS3 so soon I'll be using FM10. Thanks anyway.
    --- Derek

  • Images overlap with text when after creating pdf: InDesign CS

    Good morning,
    I am using bot InDesign CS and CS2, and I am having a problem as the following:
    After creating the pdf, images overlap with one another, or the text overlap behind the images so on.
    First, I would like to mention the overlapped images had no problem at the previous version of the pdf. If I make a change on the page "06" for example and then recreate the pdf, a couple of images in the other pages move to the different place through the document.
    So I tend to "replace" the changed pages into the previous version of the pdf instead of recreating the pdf for all pages.
    Is this kind of bug or features of InDesign?
    It would be very much appreciated if anyone answer me.
    Warm regard, Andrew.

    The PDF that was placed into ID loses all interactivity and form fields. There is no way to do what you want.
    Bob

  • Adjust image width and position along with browser size automatically.

    Hi,  I'm trying to place an image at the left edge of browser window, and the image width is 50% of the browser window size. The similar effect can be found on this website. Lenzing Instruments
    Notice that as the browser zoom out, the image remains half of the width of browser window and align with the right edge of the browser.
    I'm new to Muse. Not sure if it is possible to achieve this effect in Muse. I know Muse can set image 100% width of browser window, but how about 50%, 75% and other user defined proportion?
    Any help will be appreciated!

    Thank you for your reply Sanjit. Could you explain more in details about
    Exact responsiveness cannot be achieved but yes with scroll and pin you can create a similar effect
    I also followed this post Can you create responsive sites with Adobe Muse? It seems that Muse does not support responsive design very well. So I'm not sure how exactly to get an similar responsive design effect in Muse.
    Thanks!
    Yinze
    Design Engineer
    Lawson Hemphill Inc.

  • Formatting and alignment issues in Crystal Reports when exported to PDF

    Hi Experts,
    When we export the crystal reports 2013 reports to PDF we are facing issues with formatting and alignment. The columns are overlapping and also for some column's data, we are able to see only some parts of text when exported to PDF.
    Data source for these reports is EHP 7 (SAP ECC 6.0), BO 4.1, Crystal reports 2013.
    As these reports are on priority, your help and suggestions are much appreciated.
    Looking forward to hear from you guys.
    Thanks & Regards,
    Vijay.

    Hi Vijay,
    Search for the following in the search bar at the top right of SCN's page:
    ForceLargerFonts
    UsePrecisePositioningForText
    TruncationAdjustment
    All these are registry keys that you might need to apply on the machine.
    -Abhilash

  • Help! Image OverLapping components. Get Your dukes right here.

    I am creating an applet and I want to use an image as a background to a jPanel. There is a jTextField on the panel that is hidden because the BG image overlaps it. I would like the image to be used as a background and only as a background. Any Suggestions? Duke Dollars will be awarded.
    public class Tester extends JApplet
      Image imageTest;
      Graphics dbg;
      Image dbImage;
      JScrollPane jScrollPane1 = new JScrollPane();
      public Tester()
      public void init()
        try
          jbInit();
          imageTest = getImage( getDocumentBase(), "bg.gif");
        catch(Exception e)
          e.printStackTrace();
      private void jbInit() throws Exception
        this.getContentPane().setLayout(null);
        jScrollPane1.setBounds(new Rectangle(70, 30, 235, 215));
        jScrollPane1.setBackground(Color.black);
        jScrollPane1.setForeground(Color.white);
        this.getContentPane().add(jScrollPane1, null);
      static 
        try
          // UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
          // UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
        catch(Exception e)
    public void paint(Graphics g)
        g.drawImage(imageTest, 0,0, this);
    }

    Check out this thread:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=316074

  • Image swap and restore

    The image swap and restore won't work. I want to have one
    image switch to another when clicked and then get restored to the
    original image when clicked again. It lets me click once, but it
    won't restore the image on another click. I found that when i
    change the behavior (to say, double click) it works. Is there any
    way to have the two images toggle back and forth when i have a
    single click?
    Here is my code:
    <script type="text/JavaScript">
    <!--
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
    Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
    i<a.length; i++)
    if (a
    .indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr;
    for(i=0;a&&i<a.length&&(x=a
    )&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document;
    if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for
    (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    x=MM_findObj(n,d.layers
    .document);
    if(!x && d.getElementById) x=d.getElementById(n);
    return x;
    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
    Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
    if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    </head>
    <body>
    <table width="287" height="1200" align="left">
    <tr>
    <td width="279" height="1200" align="left"
    valign="top">
    <p><img src="SearchingClose.jpg" alt="Searching"
    name="SearchingClose"
    onclick="MM_swapImgRestore();MM_swapImage('SearchingClose','','SearchingOpen.jpg',1)"
    /></p>

    On Thu, 3 Aug 2006 12:25:09 +0000 (UTC), "nst_21710"
    <[email protected]> wrote:
    >please help!!!
    With what ? - very many of use use newsreaders to access this
    forum,
    so cannot easily see what the original questions was - so
    many people
    will just go to the next message.
    I suggest you repeat the text of your original question -
    together
    with a link to your website.
    Malcolm
    Malcolm
    webmaster
    http://www.nb-president.org.uk/
    The coal fired steam narrow boat.
    Kildare is now back in the water

  • Flash CS4, Exporting Quicktime Movie: size, aspect ratio, and alignment

    I am new to Flash so this may be a basic question, but I have not been able to find anything in the help files or the forums.
    I have tried several times to change the size of my quicktime movies, from 550 pixels by 400 pixels to 480 pixels by 480 pixels, and I cannot seem to do it. I have used "Modify > Document" and tried every option I could find through this command. Each time I export I double check that the export settings match my desired size, and they do, but when I open the movie in quicktime, it has been stretched to fit 550 x 400 pixels. The preview movie looks exactl how I want, it is only the exported movie that is incorrect.
    Is it possible to make a quicktime movie of the size I would like, or is that a standard format that cannot be adjusted?
    As a workaround, I have tried squeezing my 480x480 content into the 550x400 stage (while scaling it prportionally). but when I do this, the square of content is not centered in the background in quicktime. It is off center in the preview movie as well, and this commonly occurs after I have used "modify > document" to change the size of the document. The side to which it is aligned seems to be inconsistent.
    Is there a way to realign the video after I have modified the document size? Does changing the document size through "modify > document" affect the centering and alignment of my video? Is there a way to change it back?
    I have attached images of my videos in flash, and then what they look like after export.
    Thanks in advance for any advice.
    -Ben

    to explain a little further . . .
    the dark gray areas in my images delineate the content of the animation, and in the "550x400 after export" image, the black strip to the right is a margin showing the background color of the document, which is black. notice that there is only a margin on one side, and not both.
    Thanks some more,
    -Ben

  • Trouble getting lines not to overlap after alignment

    Hello,
    I'm having trouble getting lines to align so that there's no overlap.  In the screenshot below, you can see that there are tiny black outline jutting over or above the colored lines.  I've played with the corner, stroke and alignment settings to no avail.  Any ideas?

    That maybe an artifact that will not print did you try to zoom to  high magnifaction?
    You can sort of see what you see above but when opened in Photoshop it looks fin

  • Image Capture and Preview "folder not writable" error importing to shared folder

    I'm running 10.8.5 on a Late 2012 model Mac Mini. I'm trying to create a folder under my home directory where my wife can import pictures using Image Capture or Preview while logged into her account. I've tried setting permissions on the folder by setting POSIX permissions and ACLs from the command line, and also by setting ACLs using Get Info in Finder, but it seems as though both Image Capture and Preview ignore the ACLs and instead rely solely on the POSIX permissions for everyone/other (even when a relevant group is set). Unless the POSIX permissions for everyone/other are "rwx" Image Capture and Preview both give an error that the import failed, and /var/log/system.log shows errors that the "folder is not writable". I'd like to be able to set this up without making the folder and the files in it writable by everyone. My understanding was that ACLs should take precedence over POSIX permissions, but even the POSIX permissions don't seem to be getting handled properly, because the group is ignored. Any help or explanation of what's happening would be appreciated.
    Here's an example with details:
    Suppose we have the users alice and bob. We want to set permissions on the directory /Users/bob/importdir such that Alice can import files from a camera there using Image Capture (or Preview, either would do), but don't want to relax the permissions more than necessary.
    We create a group named bob_and_alice
    We set the following permissions on /Users/bob:
    POSIX: rwxr-xr-x, owner=bob, group=staff (i.e. default POSIX permissions)
    ACLs:
    0: group:everyone deny delete
    1: group:bob_and_alice allow list,search,readattr,readextattr,readsecurity
    2: user:alice allow list,search,readattr,readextattr,readsecurity
    "Get Info" shows "Read & Write" for bob and "Read Only" for alice, bob_and_alice, staff, and everyone
    We set the following permissions on /Users/bob/importdir:
    POSIX: rwxrwxr-x owner=bob, group=bob_and_alice
    ACLS: (these are already probably more permissive than should be necessary)
    0: group:bob_and_alice allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,re adextattr,writeextattr,readsecurity,writesecurity,file_inherit,directory_inherit
    1: user:alice allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,re adextattr,writeextattr,readsecurity,writesecurity,file_inherit,directory_inherit
    "Get Info" shows "Custom" for both alice and bob_and_alice, "Read & Write" for bob, and "Read Only" for everyone
    Alice opens a Terminal and cd's to /Users/bob/importdir. Alice can create and delete files in this directory.
    Now Alice opens Image Capture and with our camera connected we try to import a photo to /Users/bob/importdir. Image Capture shows an error dialog with the text "Import error. An error occurred while importing. The item 'foo.jpg' was not imported." /var/log/system.log shows the message: "Jul 20 22:12:34 computer_name.local Image Capture[32804]: Document destination folder is not writable" If instead Alice uses Preview it shows an error dialog with the text "The selected folder is not writable" and /var/log/system.log shows two error messages:
    Jul 20 22:23:45 computer_name.local Preview[33280]: Document destination folder is not writable
    Jul 20 22:23:45 computer_name.local Preview[33280]: Encountered error during image import: Error Domain=com.apple.ImageCaptureCore Code=-9934 "The selected folder is not writable" UserInfo=0x7ffda4881f00 {NSLocalizedDescription=The selected folder is not writable}
    Now we change the POSIX permissions on /Users/bob/importdir to: rwxrwxrwx
    The import succeeds with both Image Capture and Preview
    Can anyone explain what's going on here? Is there another reasonable way to do this without, moving this shared directory to /Users/shared?

    Did you figure out how to fix this?

  • Image Processing and machine vision don't appear in Function Palette

    Hi,
    I have problem and I can't solve it
    Image Processing and machine vision don't appear in Function Palette, Although I set up NI imaq and NI Vision Acquisition Why??
    Anyone can help me?
    Solved!
    Go to Solution.

    If the image is already a Grayscale U8 image you would just have to save it to a bitmap file using the IMAQ WriteFile VI. If not, use the IMAQ Cast Image VI to convert it to a Grayscale U8 and then save it.
    Also, it would probably be better to create a new thread for questions like these.
    Cameron T
    Applications Engineer
    National Instruments

  • Hi I have been having a problem with Bridge in CS4 recently. So uninstalled CS4 and Lightroom 4.4 and reinstalled them on my Desktop PC. When I turned on Bridge through CS4, My thumb nail images disappeared and a thumb nail icon with CR2 appeared. Now som

    Hi I have been having a problem with Bridge in CS4 recently. So uninstalled CS4 and Lightroom 4.4 and reinstalled them on my Desktop PC. When I turned on Bridge through CS4, My thumb nail images disappeared and a thumb nail icon with CR2 appeared. Now some of my images have disappeared from Light room 4.4, but I can find them in CS4 and Bridge now shows some thumb nails as images and some as an icon with CR2. I have spent two weeks going through preferences etc. to find how to resolve my problem. Please can you Help? Meany thanks in advance
      Derek Randall

    I don't use LR and rarely use the bridge so I can not answers about thumbnails in them,  However thumbnails in windows file explorer and windows dialog for CS2 files will only show if you have installed codec into windows that will produce them. Windows does not do CR2 thumbnails on its own. I use FastPictureViewer Codec package for RAW File and PSD files thunbmail support.

Maybe you are looking for

  • Can't go back to original Google search page in Safari 5.0.2 update

    A couple of days ago updated Safari to 5.0.2. I used to do a Google search, advance thru a few pages, on a link, and then click the "return" arrow in the Google box, top right, and would be returned to my "original" search page. In the Safari 5.0.2,

  • Basic select query with round

    Hello everyone, I am very new to Oracle. I have a query that i use for getting table space statistics; Here is my query; "select * from dba_tablespace_usage_metrics" This returns me the data that i want it. like; TABLESPACE_NAME USED_SPACE TABLESPACE

  • Regarding Cold Fusion8 installation in Solaris environment.

    we use Cold Fusin 6 on Solaris  platform with Iplanet web server. We had the plan to upgrade it to Cold Fusion8. So i have installed cold fusion 8 which preserves the existing settings and installs in a new directory, After insallation it is allowing

  • Print in Lion

    application quit after print in lion

  • Distribute grayed out in Photoshop CS5

    Is there a reason this would be greyed out, both the toolbar icons and under layer -> distribute? As I understand it, you actually need layers selected for this to work -- but that doesn't change anything.  I've tried selecting multiple layers, I've