How to insert background colour into text?

Hi,
I'm relatively new to Dreamweaver so I'm not sure how exactly to phrase this question. Within a div file on my HTML I have created I have a few links taking the user to another page. .
For the sake of clarity I have inserted an image to express what I am trying to say.
The background colour for my div is a chocolate brown. I was wondering if there was any way of creating a background for the text for each link within the div? So the text would have a background with a different colour?
I'm trying to create something that looks like this:
Does anyone know if this is possible to do? Do I have to create separate Div files within the main div file to do this?
Apologies for the lack of detail, I just don't know the technical words to show what I'm looking to do! Any tips or links to tutorials would be hugely appreciated.
Thanks for reading.

First, we need to examine the HTML code used to construct your menu.  The modern approach is to use an unordered list like this:
<nav>
     <ul>
          <li><a href="#">Menu Item1</a></li>
          <li><a href="#">Menu Item2 </a></li>
          <li><a href="#">Menu Item3</a></li>
          <li><a href="#">Menu Item4</a></li>
          <li><a href="#">Menu Item5</a></li>
     </ul>
</nav>
Then style your navigation with CSS like this:
<style>
/**zero out margins & padding on everything**/
margin:0;
padding:0;
/**fix the CSS Box Model on % layouts**/
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
box-sizing:border-box;
nav {
    width: 100%;  /**adjust width as needed**/
    background-color: #960;
    padding: 30px;
nav ul {
    margin: 0;
    padding: 0
nav li {
    width: 20%;
    list-style: none;
    font-size: 14px;
    float: left;
    text-align: center;
/**menu links**/
nav li a {
    display: block;
    text-decoration: none;
    margin-right: 6px;   /* space between links */
    width: auto;  /* adjust as needed or use auto */
    padding: 6px;
    font-weight: bold;
    line-height: 2em;
    color: #FFF;
    background: orange;
/**menu style on mouse over**/
nav li:hover {
    color: #FFF;
    background: #1e5799;
/**clear floats after nav element**/
nav:after {
    clear: both;
    display: block;
    content: ' ' ;
/**END MENU STYLES**/
</style>
Nancy O.

Similar Messages

  • How to insert an image into text area?

    Hi everybody,
    I have a proplem : insert an image into text area ( likely Yahoo Chat)
    eg : Hello,World :D =)) :x
    I can't do it.
    Can you help me?
    Thank you!
    Edited by: Chelsea_Drogba7589 on May 28, 2010 9:28 PM

    StanislavL wrote:
    [http://java-sl.com/tip_autoreplace_smiles.html]
    Neat example. :)
    Try this.I did and was at first confused because I expected the code to arrive on-screen looking like the screen-shot at the page. Then it occured to me to type some text including a smiley, and it changed to the icon as expected.
    For other people like me who are not quite very clever, how about adding an 'Instructions' section, or initializing the JEP with instructions?
    BTW -
    "The screenshot shows how it looks like:" reads better as..
    "The screenshot shows how it looks:"

  • Can anyone advise me how to insert a hyperlink into a project I am using Captivate 5?

    Can anyone advise me how to insert a hyperlink into a project - I am using Captivate 5

    You can use an interactive object such as a click box placed over the top of a text caption, or a button, to link to the URL.  However, these will not strictly-speaking appear identical to hyperlinks.
    If you really want to replicate the rollover appearance of a true HTML text hyperlink, then you might consider the Hyperlink widget from Infosemantics:
    http://www.infosemantics.com.au/adobe-captivate-widgets/hyperlink-interactive/help
    Free trial versions for download hers:
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets

  • How to insert ur own documentaion text from harddisk to sapscript

    how to insert ur own documentaion text from harddisk to sapscript

    You should upload this standard text to SO10,  then you can simply include it into your sapscript.
    Regards,
    RIch Heilman

  • How To Insert A object into Conext

    Hi Techies,
    I have 8 tables in my designer
    and I have two contexts at designer level
    And how to insert a object into a context that is not referencing any table.
    For Example I have an object like "rownum" (Which should must be added at Universe level only not at report level). Here this object is not referencing any table and I want this to be used in a query where the remaining objects are coming from the context..
    Thanks in Advance..

          Double-click the Objects and click the TABLES button and select the table you want to associate the object to for the context to work properly (see below).
    Regards,
    Ajay

  • How to insert a query into a NEW workbook ?

    Hi Friends,
    Could some one tell me how to insert a query into a new workbook? i am trying to run query in NW2004S BEx Query Designer, which always open the query on web when executed. i want to run the query in NW2004S BEx Query Designer and want it to open the result in Excell.
    If i am not wrong then to do the same, i need to embed the query into workbook. Correct me if i am wrong. If i am right then plzz tell me the steps to insert the query into workbook.
    Ur help will be rewarded in terms of points.
    Thanks,

    Hello,
    If you open the BEx Query Designer from the desktop, you cannot execute the query directly to the BEx Analyzer for an Excel view. You can only execute it directly to the Web. This is true for the SAP BW 3.x version as well as the SAP NetWeaver 2004s version.
    If you open the BEx Query Designer from within BEx Analyzer, once you select (or create) your query, you will have a green check mark icon that will then allow you to deploy the query directly to the BEx Analyzer for the Excel view.
    However, this would only make sense if you are creating or modifying the query. If not, you would simply open BEx Analyzer and use the Open Query option in this tool to see your query in an Excel format, as has been previously suggested by the other respondents to this posting.
    Regards,
    Katie Beavers
    SAP NetWeaver Product Management

  • How to change Background Colour in IC Web Client !

    Hi,
    How to change Background Colour in IC Web Client ?
    The desired option is to have a choice of colours based on user. Is it possible?
    Regards.

    Hi,
    May I know if this is the right place to post questions on IC Web Client?
    So far I have not succeeded in getting responses to any of my questions.
    Is there any other forum where i can post questions related to this topic.
    Regards.

  • How to insert a value into a field of binary type?

    I've been using Oracle for a while now but never dealt with BLOB
    or long raw type before. Does anyone here know how to insert a
    record into a field of either blob or long raw type?
    Any suggestions would be very appreicated.
    Thanks.

    pls used the loadfromfile procedure which is in the DBMS_LOB
    package to insert the data from external os file into blob data
    type column.
    Kunjan

  • How to insert a photo into a film strip theme

    I am making a imovie with a lot of pictures and few videos but I was wondering how to insert the pictures into the filmstrip theme. I have seen it done in other peoples movies before i just cant figure it out

    Hi Bob,
    With titles, all you need to do is drag them directly onto a video clip or still - the Theme will automatically take care of placing the video into the appropriate frames.
    Similarly with transitions. Drag the theme transition between 2 clips (video or stills) and the frames will be "populated" automatically. If you now click on the transition, you will see that each frame is numbered, both in the viewer and the timeline. Simply drag the numbers in the timeline to a different position to change the stills in the transition.
    Hope I've not misunderstood what you are trying to do!
    John

  • Hi, plz help me. i wanna store photos to sql database. so how to insert file field into insert record in dreamweaver cs3?

    I dont know how to insert file field into insert record in DW. i also want to know, insert dynamic table with image field. Plz help me anyone. Ty..

    ohh kk thank you bro. But How to store photos to server file. I wanna upload and display the photos in webpage. Can you send me the php code for this?

  • How to insert line number into APPLIED_CUSTOMER_TRX_LINE_ID?

    Hi All,
    I am working on the table of receivable AR_RECEIVABLE_APPLICATIONS_ALL.
    I get some information about APPLIED_CUSTOMER_TRX_LINE_ID form TRM.
    APPLIED_CUSTOMER_TRX_LINE_ID     NUMBER     (15)     
    The line number of the debit item or credit memo to which a payment or credit memo is applied
    So, I want to use APPLIED_CUSTOMER_TRX_LINE_ID to join with transaction's line (RA_CUSTOMER_TRX_LINES_ALL).
    But after applied the credit memo, the APPLIED_CUSTOMER_TRX_LINE_ID is NULL.
    How to insert line number into APPLIED_CUSTOMER_TRX_LINE_ID?

    Hi Eric,
    The application is already at the AR Invoice (header) level. Oracle doesn't give you privilege to apply the invoice at invoice line or distribution level. You need to match the applied_customer_trx_id to customer_trx_id of ra_customer_trx_all to get the applied invoice/debit memo number. Hope my comments are helpful to you.
    KG

  • How to insert  Legacy data into QP_RLTD_MODIFIERS table?

    How to insert  Legacy data into QP_RLTD_MODIFIERS table in R12 instance.

    I would use the API QP_Modifiers_PUB.Process_Modifiers for pushing legacy pricing data into R12.  QP_RLTD_MODIFIERS is only used for certain types of discounts (in my prod environnment, only promos have data in this table).

  • How to insert rows & columns into a jTable???

    helloo there...
    How to insert rows & columns into a jtable???
    your reply is greatly appreciated....
    -=samer=-

    Yes!thanks...
    But what i want is how to set the number of rows and the number of columns...and i don't know how to setColumns and rows....any idea?
    the user will input number of rows and columns in a jtextfield....
    Please rply...

  • How to insert an image into mysql

    welcome to all,
    can any one tell how to insert an image into mysql database(BLOB). it is urgent.
    regards

    welcome to all,
    can any one tell how to insert an image into mysql database(BLOB). it is urgent.
    regards

  • How to insert a picture into the Rich Text Editor

    hi,all
    I want to make a Press Releases page,that means I have to use the the Rich Text Editor.In this item,I dont know how to quote a picture into this field.though i know there is a picture icon in this field,and when i press it,it can pup up a window.That is the Image Properties Window,under this window,there is a URL text field.But I dont know what to fill in this field,I mean,I dont know what the URL link is .can you just give me a picture URL sample ?
    is it like "#APP_IMAGES#136_1_1.jpg" or something else ?
    hope to hear from you.thanks ...
    best regards
    hlee
    Edited by: hlee on 2011-3-30 下午8:04

    Hi,
    There is three types of images reference in oracle apex.
    1 Standard image -> url reference is -----> #IMAGE_PREFIX#menu/books_64.gif
    2 Workspace images -> url reference is ------> #WORKSPACE_IMAGES#java-icon.jpg
    3 Application images -> url reference is ------> #APP_IMAGES#JqueryIcon.jpg
    hope this helps you
    Thanks,
    Jaydip Bosamiya
    +91 - 76000 23053
    [http://jbosamiya.blogpost.com|http://jbosamiya.blogpost.com]

Maybe you are looking for

  • Error while activating Transactional data source

    I am facing the below error while activating the transactional data source. Field Revenue ( Position 7 ): Amount Field in Internal Format, Check Settings. Can nyone plz let me know.

  • How to Create NFS in Linux

    Hi all, I am very much new to Linux Admin, i am basically working as a apps dba, i have two servers, i installed Oracle Linux on that, now i want to create NFS file system, i have created u01 mount pioint in Linux1 and u01 in linux 2 with same space

  • Import data - errors: IMP-00017, IMP-00003, ORA-04052, ORA-00604, ORA-12154

    When I try to import data from dmp file to my database I found errors whitch repeat all time.. First console show me: IMP-00017: following statement failed with ORACLE error 4052 then show all procedure in which there are errors. After procedure I've

  • Change color of datatip point

    How would I go about changing the color of the point on a datatip in a flex chart?

  • IMovie 11 doesn't finish loading.

    I'm on OS X 10.7.4 and running iMovie '11.  When I load iMovie, the menu bar loads, but all options are greyed out.  Further, the errors below appear in the console.  I've tried removing the relevant plists and repairing permissions with no luck.  An