Fitting background image size according to link text

I am using a list for my navigation. I have a background
image which is shown on the LI. If the text in the link is longer
than the width of the image then the background image is repeated.
How can I stretch the width of the image?
Does it look like I am putting the background image in the
right place? Am I doing this right? Thanks a lot
<style type="text/css">
BODY {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: small;
PADDING-BOTTOM: 0px; MARGIN: 0px; COLOR: #000; PADDING-TOP: 0px;
FONT-FAMILY: "Trebuchet MS", arial, helvetica, sans-serif;
BACKGROUND-COLOR: #fff; TEXT-ALIGN: center; min-width: 740px
#navbar {CLEAR: both; MARGIN: 0px; WIDTH: 760px;
bgColor=#cccccc
#navbar LI {
background-image: url(britishalliance/navback.gif);
PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px;
PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px;
LIST-STYLE-TYPE: none
#navbar UL {
LIST-STYLE-TYPE: none;
#navbar A:link {
background-image: url(britishalliance/navback.gif);
BORDER-RIGHT: #c63 1px solid; PADDING-RIGHT: 6px;
PADDING-LEFT: 6px; FONT-SIZE: 12px; FLOAT: left; PADDING-BOTTOM:
5px; COLOR: black; LINE-HEIGHT: 10px; PADDING-TOP: 5px;
WHITE-SPACE: nowrap; TEXT-DECORATION: none
</style>
<DIV id=navbar>
<UL><LI><A href="">aaaaaa aaaa
aaaaaaaaaa</A>
<LI><A href="">aaaaa aa aa aaaaaaaa</A>
<LI><A href="">aaaaa aa aaaaaaaa</A>
<LI><A href="">aaaaaaaaa</A>
<LI><A href="">aaaaaaaaaaaaa aaaaaaaaa</A>
<LI><A href="">aaaaaa aa</A></LI>
</UL></DIV>

> How can I stretch the width of the image?
You cannot. But you can prevent it from tiling with CSS.
> Does it look like I am putting the background image in
the right place?
It's not necessary to have it on both the <a> and the
<li> tags.
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
==================
"Hydrowizard" <[email protected]> wrote in
message
news:[email protected]...
>I am using a list for my navigation. I have a background
image which is
>shown
> on the LI. If the text in the link is longer than the
width of the image
> then
> the background image is repeated. How can I stretch the
width of the
> image?
> Does it look like I am putting the background image in
the right place? Am
> I
> doing this right? Thanks a lot
>
> <style type="text/css">
> BODY {
> PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: small;
PADDING-BOTTOM:
> 0px;
> MARGIN: 0px; COLOR: #000; PADDING-TOP: 0px; FONT-FAMILY:
"Trebuchet MS",
> arial,
> helvetica, sans-serif; BACKGROUND-COLOR: #fff;
TEXT-ALIGN: center;
> min-width:
> 740px
> }
> #navbar {CLEAR: both; MARGIN: 0px; WIDTH: 760px;
bgColor=#cccccc
> }
> #navbar LI {
> background-image: url(britishalliance/navback.gif);
> PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px;
PADDING-BOTTOM:
> 0px;
> MARGIN: 0px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none
> }
> #navbar UL {
> LIST-STYLE-TYPE: none;
> }
> #navbar A:link {
> background-image: url(britishalliance/navback.gif);
> BORDER-RIGHT: #c63 1px solid; PADDING-RIGHT: 6px;
PADDING-LEFT: 6px;
> FONT-SIZE: 12px; FLOAT: left; PADDING-BOTTOM: 5px;
COLOR: black;
> LINE-HEIGHT:
> 10px; PADDING-TOP: 5px; WHITE-SPACE: nowrap;
TEXT-DECORATION: none
> }
> </style>
>
>
> <DIV id=navbar>
> <UL><LI><A href="">aaaaaa aaaa
aaaaaaaaaa</A>
> <LI><A href="">aaaaa aa aa
aaaaaaaa</A>
> <LI><A href="">aaaaa aa aaaaaaaa</A>
> <LI><A href="">aaaaaaaaa</A>
> <LI><A href="">aaaaaaaaaaaaa
aaaaaaaaa</A>
> <LI><A href="">aaaaaa
aa</A></LI>
> </UL></DIV>
>

Similar Messages

  • 8851 Background Image size

    I'm having problems with the thumbnail images on a 8551 phone.
    According to the docs at www.cisco.com/c/en/us/td/docs/voice_ip_comm/cuipph/8811_8841_8851_8861/10_5/english/adminguide/P881_BK_A92A3B94_00_adminguide-8811_41_51_61-10_5/P881_BK_A92A3B94_00_adminguide-8811_41_51_61-10_5_chapter_01010.html the thumbnail image sizes for the 8851 are 25% of the main image size (which is 800x480 at 24 bit colour depth so the thumbnail would be 200x120) But a few lines further down, the docs say the image size should be 159x109 (which is NOT 25% of the background image size and is a different aspect ratio.)
    I tried to open a couple of the existing thumbnails from Desktops/800x480x24 on my TFTP server, but they don't appear to be regonised as image files by my computer.
    I've tried images of 159x109x24 bit colour and 200x120x24 bit colour, all PNG, but none of them work as thumbnails.
    What are the specs of the thumbnail files for the 8851 phones?
    GTG

    Take a look at this bug:
    Documentation: background image size/path for 88xx phones is 800x480x24
    CSCus27001

  • Reducing background image size

    Hi all,
    I'm working with Captivate 4 and have made a screencast of a particular process for training purposes.
    The project has 80 slides - but each background image is 1800+kb. Overall the project comes out at 3 MB even with the highest possible compression in the publishing settings.
    The project is to be hosted on the Web so I really don't need this kind of detail in the background images and I can't find anyway to reduce the image size apart from exporting each of the 80 backgrounds into Photoshop, reducing them in size and importing them back into Catptivate. For 80 slides this would take too long.
    So, two questions:
    How can the background image size be reduced within Captivate?
    How can I change the settings so when capturing screenshots the image sizes are smaller in the first place?
    Thanks in advance for any tips,
    Neil
    Is there anyway the

    Thanks Lilybiri
    I've bene recording at full screen (1024x768 or close enough) in order to get the largest recording space possible - and then resizing the project to 800x600 for the web production. The problem is that there is no optimise for web setting (or none that I can see). I just did another test and each background image is 3000kb - way over the top for something that will be viewed on the web.
    Does this help you get a fuller picture? Any advice?
    Thanks for sparing your time to answer here btw - much appreciated
    Neil

  • Promoted Links Tile Background Image Size Issue

    I am brand new to using sharepoint and I am having an issue with the images attached to the promoted link tiles.  No matter what size I change the file too, I can not get the tile to show the whole pictures.
    I have tried changing the image size for multiple different pictures in both photoshop and illustrator to 128px and 150px, with no luck!
    Does anyone have any advice on how to make the pictures fit in the tiles or how to start with an illustrator or indesign image and format it correctly to display in the tile view?
    As many details as possible will help since I just started using this program! 
    Thank you!

    Hi,
    According to your description, my understanding is the promoted link tile can’t show the whole image.
    By default, When image with a blank space around, it would be transformed properly in promote link tile, I suggest you modify the image to make it with blank space around.
    For about modifying image, I suggest you post a question to the corresponding forum such as Photoshop forum:
    https://forums.adobe.com/community/photoshop
    Feel free to reply if there are still any questions.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Problems with the background image size in a photobook

    Hi there, I really need help here. When I make a photobook I want to display my images large, taking the whole page. To do that I put the image as a background and it's OK. My problem is that when I do this, iPhoto always crops it. I have to use the move tool to move the image up and down, left or right to chose a best position. I don't want to do this, I want my image to be shown perfectly from end to end. I have to resize the image in many ways, even used the book's native resolution but it still doesn't work. If I choose "fit photo to frame size" I end up with two stripes at the top and the bottom of the page.
    Please help me, what size should I resize my image to, so that iPhoto displays it as it is?
    Thank you

    Hi
    The fact you are using a Mac is why both myself and JCellini assumed you where using a pre IE7 version.
    But the code you are using to test in IE will cause a problem with any 'virtual machine' such as crossover, because it cannot reference anything outside its own assigned section of the drive, and referencing the png in the way you are would be for it an invalid reference, it also would not work in any browser when you uploaded the site.
    Change - background-image:url(file:///Macintosh  HD/Users/myname/Documents/websites/test/Test/images/test_back.png);
    To - background-image:url(images/test_back.png);
    But if the region is not editable I would suggest you temporarily make it so, externalize your css to a css file, insert a link to the external css file in your head content, then lock the region once again. This way you will always be able to edit your css without worrying about 'locked regions'.
    PZ
    www.pziecina.com

  • Menu background image size

    Hi...if I follow this link http://docs.info.apple.com/article.html?path=iDVD/6.0/en/17.html and the instructions for preparing menu background images. My images still get cropped. Does anyone know the real sizes that will fit perfectly?
    From the Apple link:
    "If you want your images to fit the DVD window exactly, use an image-editing application to crop and resize the images to the following dimensions:
    720 x 540 pixels for standard video in NTSC format
    854 x 480 pixels for widescreen in NTSC format
    768 x 576 pixels for standard video in PAL format
    1024 x 576 pixels for widescreen in PAL format"
    Many thanks in advance

    Shingy,
    Today there is an update to iDVD (as well as other iApps) that you should make.
    After doing the update this is what I found:
    I'm not sure if the things I'm seeing are a result of the update, but after updating I have further defined the problem.
    The problem now seems to be in figuring out the proper background size when using a widescreen theme converted to 4:3
    Widescreen as widescreen and 4:3 as 4:3 work as expected in PAL.
    So, if you stick with the originally discussed image sizes for PAL you will be OK AS LONG AS you don't try to use a widescreen theme as a 4:3 theme. (I didn't try using a 4:3 theme as widescreen.)

  • Background Image Size

    Hello! First time poster :)
    Is there any way to compress background images in Captivate
    3? I'm creating a tutorial on how to use the admin side of a
    website that will be uploaded for people to log in and view. When
    all is said and done, there will be about 300 slides and 45 minutes
    of audio broken up over those slides. I'm editing MP3s outside of
    the program to keep their size low, but the background screen shots
    are killing me. In order to fit the entire browser into the shot,
    the slides had to be 920 x 695 pixels and each shot is about 2.5MB,
    making my .cp file size a cumbersome 800+MB. I'm worried that the
    size of the published file is going to be too large for most people
    to view easily.
    I feel pretty comfortable with this program, but as a first
    time user, I'm worried that there are things I should be doing
    differently to avoid such large file sizes. Any suggestions on ways
    to decrease my file size?
    Thanks so much!

    Thanks for your quick reply! Having only used Captivate in
    tutorials, I wasn't sure what its capabilities were as far as how
    much you should put in one file. I have the slides divided into
    sections that I could easily save out as separate projects, but
    here is my concern. I need the tutorial to work as one cohesive
    piece. Ideally, the user needs to be able to watch it once all the
    way through, but have the option of skipping to various sections
    they'd like to view again. I was planning on doing this via a
    button appearing on each slide that would take them to a single
    slide that would navigate them to whatever section they needed. Is
    there any way to split up the files, yet still make a singular
    published file (or at least something functioning as like a
    singular published file)? What are your recommended limits for
    Captivate projects?
    Any suggestions are welcome as I'm running into a time
    crunch. Let me know if my explanation is at all unclear.
    THANKS!!

  • Resizing browser to background image size

    I am trying to redo my website and I want to have a large landscape image on the opening page and for the browser to automatically resize to the proportions of the images and for the image to change in size when the browser window is changed in size.
    To make it easier to understand I want it to work like this:-
    http://www.lachapellestudio.com/
    I don't want a 'border' to appear at any point. Does anyone know a small HTML snippet that will make this work???

    > Does a background image have to be smaller than a
    certain size in order to
    > show up as your background on a web page
    no
    -Darrel

  • Ipad background image size

    I would like to use a background image that I have in my Photos File on my iPad. I selected it and can not resize it to fit the screen. It is currently 216 x 540 @ 72 dpi; 61kb. Does it need to be smaller? I have the same image on my iPhone 5 and it fits the screen perfectly.

    Apparently you need to turn off reduce motion. I cant look at where that is exactly because I'm on my old iPad right now, but that will put back the move and scale

  • Background image size smaller but same quality?

    Hi guys,
    I just released www.cloudformz.com, It's an advanced formbuilder (Dutch) and the whole theme is that it's a cloud service.
    So,how surprising, I use a cloud background (1920 x 1080). My question is, how can I get the filesize smaller, but the same quality.
    I am aware of the quality slider when exporting for web, but that decreases the quality sow much that you see artifacts.
    Thanks in advance.
    online formulieren maken

    Internet users expecting to use "cloud" services would normally be fairly well connected to the Internet, no?
    Your background image, http://www.cloudformz.com/img/bg.jpg, is only 64 kbytes.  That's already almost inconsequentially small for an image that size...  It's a fairly highly compressed JPEG with no color profile info or metadata in it.  I don't think you're going to get it much smaller than that without seeing quality loss.
    However, one thing to try, with a large graphic containing open spaces and pure, solid colors, would be to save as a PNG, which can be very efficient for such files.  However, any noise or gradients in the image at all will cause a big increase in size.
    -Noel

  • PAL background image size requirement

    I'm trying to help Shingy who asked a question about a background image problem (see the message thread at http://discussions.apple.com/thread.jspa?threadID=475370&tstart=0).
    Background images for NTSC projects (for at least the themes I've checked) seem to workout at the 'standard' image sizes: 720x540 pixel for standard and 854x480 pixels for widescreen.
    With PAL, using the PAL 'standard' image sizes: 768x576 pixel for standard and 1024x576 pixels for widescreen - results in images far larger than the background.
    Any suggestions to help Shingy?

    Fred,
    I don't know much about pic sizes, but maybe Karl's tables can help:
    http://discussions.apple.com/thread.jspa?messageID=2090899&#2090899
    mish

  • How can i change my Browser background image size in Iweb???

    Hello,
    I am trying to upload a picture to use in iweb as browser background which will be fixed.
    The problem is that when i upload the image it doesn’t appear in full. It zooms in a portion of the image.
    This is really annoying and have been trying to change it for days.
    Have a look and it might give you a better idea http://www.inthepocketdrumstudio.com
    Can anyone help please?
    Thank you. A

    I really do not know what resizing the browser windows means.
    Perhaps I must go back to school again.
    Ah, I remember. Drag the bottom right-hand corner of the browser window to resize it.
    Anyway, here's the widget page :
    http://www.inthepocketdrumstudio.com/InThePocketDrumStudio_files/widget0_markup. html
    You should move the image out of the InThePocketDrumStudio_files folder.
    With the code i provided the image will display in the webpage.
    Also remove the image as background in iWeb.

  • Link on background image

    I created and inserted a  background image in the Container. It includes "link buttons" built into the image in Photoshop, meaning images intended to be clicked in order to move to another page.  I can't create hotspots/image maps to use to create links because the image is a background image.
    How do I create the actual hyperlinks to make the "buttons" function as navigiation links?
    Thanks for your suggestions.
    Barry

    Google is your friend.
    Search term
    "Links on background images"
    First link in search result
    http://xavisys.com/css-trick-turning-a-background-image-into-a-clickable-link/
    #yourdiv {
        background-image:url(image.png);
        display:block;
        height:58px;
        text-indent:-9999px;
        width:200px;
    You will need to style the position of the div(s)
    Learn CSS
    Shane

  • Making background image clickable link

    I have several div tags with background images in them.  I want to make the background images clickable links.  what is the easiest way to do this?

    Yes, the background image can be made clickable.
    Here is the link to get the info to one method: http://ran.ge/2009/11/11/css-trick-turning-a-background-image-into-a-clickable-link/
    Basically it is written like this:
    ==CSS==
    #bkgrdimage {
        background-image:url ('image.png');
        display:block;
        height:??px;       (image height)
        width:??px;        (image width)
        text-indent:-9999px;  
    ==HTML==
    <a href="http://????" title="Title of Link" id="bkgrdimage">Basic Text For this Link</a>
    The text indent places the "basic text for this link" outside the browser screen.

  • Having trouble making background image editable in template

    Hello this is my first time so here goes...
    I would like to make a template from a page I have created,
    the trouble is the background image is url background image placed
    in css with text over the image, the problem I have is on further
    pages I would like to keep same divs
    but would like the freedom to change text and bground image.
    I have tried to make text an editable region which works and
    bground image make attribute editable but I do not really
    understand how this works any ideas would be much appreciated here
    is my site address
    http://www.andysite.prohost4u.co.uk
    cheers

    I'm confused, I dont see that you have a background image in
    your css.
    "WILLO THE WISP" <[email protected]> wrote
    in message
    news:[email protected]...
    >
    Hello this is my first time so here goes...
    > I would like to make a template from a page I have
    created, the trouble is
    > the
    > background image is url background image placed in css
    with text over the
    > image, the problem I have is on further pages I would
    like to keep same
    > divs
    > but would like the freedom to change text and bground
    image. I have tried
    > to
    > make text an editable region which works and bground
    image make attribute
    > editable but I do not really understand how this works
    any ideas would be
    > much
    > appreciated here is my site address
    http://www.andysite.prohost4u.co.uk
    > cheers
    >
    >
    > Here is my css
    > * {
    > margin : 0 auto;
    > padding : 0;
    > }
    > body {
    > background-color : #ffffff;
    > text-align : center;
    > font-family : "Square721 BT", "Staccato222 BT", Courier;
    > font-size : 100%;
    > background-position : center center;
    > }
    > #container {
    > font-family : "Square721 BT", "Staccato222 BT", Courier;
    > background-color : #ffffff;
    > width : 780px;
    > }
    > #header {
    > width : 780px;
    > height : 280px;
    > margin-top : 10px;
    > margin-bottom : 10px;
    > }
    > #content {
    > background-image: url(images/content_bground.gif);
    > float: left;
    > height: 400px;
    > width: 430px;
    > }
    > #content h1 {
    > font-size : 115%;
    > width : 390px;
    > color : #00ccff;
    > text-align : left;
    > padding-left : 60px;
    > padding-top : 40px;
    > padding-bottom : 10px;
    > }
    > #content p {
    > font-size : 80%;
    > width : 310px;
    > text-align : justify;
    > text-indent : 20px;
    > color : #66FFFF;
    > }
    > #content h2 {
    > font-size : 80%;
    > width : 420px;
    > color : #00ccff;
    > text-align : left;
    > padding-left : 60px;
    > height : 70px;
    > padding-top : 10px;
    > }
    > #sidebar {
    > background-image : url(images/sidebar_bground.gif);
    > width : 340px;
    > height : 400px;
    > float : right;
    > }
    > #sidebar ul {
    > font-size : 60%;
    > line-height : 22px;
    > list-style-image : url(images/bullet.gif);
    > list-style-position : outside;
    > text-align : left;
    > color : #66FFFF;
    > padding-top : 45px;
    > padding-left : 62px;
    > }
    >
    > #clear {
    > clear : both;
    > }
    > #footer {
    > background-image : url(images/footer_bground.gif);
    > width : 780px;
    > height : 80px;
    > margin-bottom : 10px;
    > margin-top : 10px;
    > position: fixed;
    > }
    > #footer p {
    > text-align : center;
    > font-size : 75%;
    > color : #66ffff;
    > padding-top : 24px;
    > }
    > #footer ul {
    > margin : 2px;
    > }
    > #footer li {
    > display : inline;
    > margin : 0;
    > }
    > #footer a:link, #footer a:visited {
    > color : #00ccff;
    > margin : 2px;
    > }
    > #footer a:hover, #footer a:active {
    > color : #00FFFF;
    > text-decoration : none;
    > background-color : #33cccc;
    > }
    > a:link {
    > color : #00ccff;
    > text-decoration : none;
    > }
    >
    > a:visited {
    > text-decoration : none;
    > color: #00CCFF;
    > }
    > a:hover {
    > text-decoration : underline;
    > color: #00FFFF;
    > }
    > a:active {
    > text-decoration : none;
    > color: #006699;
    > }
    >

Maybe you are looking for

  • Remove applications from the list in activities overview in GNOME

    I am looking to edit which applications are listed in the "All Applications" in the activities overview in GNOME, since a lot them are NEVER used, and makes the menu look very messy. Any clues on how to this? I installed the alacarte prog, but it can

  • Mass consolidation of Roles

    Hi, I have seen many posts on copying, uploading and combining roles.  However, I am looking for a slightly different solution.  I believe it is probably impossible to accomplish in an automatic manner (via SECATT). I have individual reporting and in

  • AED not appearing in J2IUN

    Dear Experts I am running J2IUN. Given the subtransaction type IP manually in the selection screen. Even then, AED is NOT appearing in the  utilization screen. What needs to be done, for AED to appear, so that AED can be utilized from BED  balance? G

  • Mac Application Deployment

    I am trying to use SCCM 2012 SP1 to deploy SCEP for MAC's. I have created the .cmmac file. When I ran the utility to create the .cmmac file it asked which package under the .dmg file I wanted to run the program against. I chose installer.pkg. I have

  • Selection of Levels of a member in FR

    In one of the report, i need to select the Lev0,Lev1 of a member1 in the dimension "customer". There is a default list available like Lev0,Customer.,Lev1.customer...Lev2..Lev3 in the selection list But i want the Lev0&Lev1 members of member1 in that