Click here to Skip to main content
15,900,378 members
Home / Discussions / Web Development
   

Web Development

 
QuestionCSS-Sprites question Pin
vkEE26-Jun-13 5:06
vkEE26-Jun-13 5:06 
Hello,

I do apologize if this is the incorrect forum - there is not one set up for HMTL related questions.

I am new to sprites concept. With that said, I have generated a sprite using a tool available on web.

This sprite has 5 images.

Now, I want to display the images on different locations on a given page. The first image right corner. Second image is 3/4 down the page on left side.

I created a navigation list for first image. Please see below. I have specified the the top at 45px. How would i manipulate the second image now, to show at different locations on the same web page? Would I add another navigation list and work that way? Is there a way I can control the location of image in #advsearch specification? Thank you!

HTML
<style>
       #navlist {position: relative;}
       #navlist li {margin:0;padding:0;list-style:none;position:absolute;top:45px;}
       #navlist li, #navlist a {height:23px;display:block;}

       #advsearch {left: 650px;width: 136px;}
       #advsearch {background:url('CSS_Sprite_1.png') 0 0;}
   </style>

XML
<body>
     <ul id="navlist">
        <li id="advsearch"><a href="http://search.com/"></a></li>
    </ul>
    <form id="form1" runat="server">
    <div>

    </div>
    </form>
</body>

QuestionHighlight a button on mouse hover Pin
astrixtech26-Jun-13 2:53
astrixtech26-Jun-13 2:53 
AnswerRe: Highlight a button on mouse hover Pin
Graham Breach26-Jun-13 3:32
Graham Breach26-Jun-13 3:32 
AnswerRe: Highlight a button on mouse hover Pin
Blikkies26-Jun-13 3:34
professionalBlikkies26-Jun-13 3:34 
GeneralRe: Highlight a button on mouse hover Pin
astrixtech26-Jun-13 20:13
astrixtech26-Jun-13 20:13 
GeneralRe: Highlight a button on mouse hover Pin
Blikkies26-Jun-13 20:57
professionalBlikkies26-Jun-13 20:57 
GeneralRe: Highlight a button on mouse hover Pin
astrixtech26-Jun-13 21:14
astrixtech26-Jun-13 21:14 
GeneralRe: Highlight a button on mouse hover Pin
Blikkies26-Jun-13 21:24
professionalBlikkies26-Jun-13 21:24 
GeneralRe: Highlight a button on mouse hover Pin
astrixtech27-Jun-13 2:15
astrixtech27-Jun-13 2:15 
GeneralRe: Highlight a button on mouse hover Pin
astrixtech27-Jun-13 2:38
astrixtech27-Jun-13 2:38 
GeneralRe: Highlight a button on mouse hover Pin
Blikkies27-Jun-13 2:53
professionalBlikkies27-Jun-13 2:53 
GeneralRe: Highlight a button on mouse hover Pin
astrixtech27-Jun-13 3:02
astrixtech27-Jun-13 3:02 
Questionhow to develop webui like cloudify webui console? Pin
dk 30325-Jun-13 19:45
dk 30325-Jun-13 19:45 
AnswerRe: how to develop webui like cloudify webui console? Pin
Dennis E White25-Jun-13 20:27
professionalDennis E White25-Jun-13 20:27 
GeneralRe: how to develop webui like cloudify webui console? Pin
dk 30325-Jun-13 20:42
dk 30325-Jun-13 20:42 
Questionmsxml2 parsing svg Pin
Jonathan Davies23-Jun-13 9:09
Jonathan Davies23-Jun-13 9:09 
AnswerRe: msxml2 parsing svg Pin
RedDk24-Jun-13 11:21
RedDk24-Jun-13 11:21 
GeneralRe: msxml2 parsing svg Pin
Jonathan Davies24-Jun-13 22:40
Jonathan Davies24-Jun-13 22:40 
GeneralRe: msxml2 parsing svg Pin
RedDk25-Jun-13 3:58
RedDk25-Jun-13 3:58 
GeneralRe: msxml2 parsing svg Pin
Jonathan Davies25-Jun-13 4:55
Jonathan Davies25-Jun-13 4:55 
GeneralRe: msxml2 parsing svg Pin
RedDk25-Jun-13 5:19
RedDk25-Jun-13 5:19 
Questionpng graphics used when I expected svg Pin
Jonathan Davies14-Jun-13 3:27
Jonathan Davies14-Jun-13 3:27 
AnswerRe: png graphics used when I expected svg Pin
Richard Deeming14-Jun-13 7:48
mveRichard Deeming14-Jun-13 7:48 
GeneralRe: png graphics used when I expected svg Pin
Jonathan Davies14-Jun-13 11:36
Jonathan Davies14-Jun-13 11:36 
QuestionWeb Service Return Type - Create Method Pin
tadhg8814-Jun-13 1:20
tadhg8814-Jun-13 1:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.