473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

get two lines of text on UL navigation

347 100+
i have a simple navigation with no sub menus like this

Expand|Select|Wrap|Line Numbers
  1. <ul id="topnav">
  2. <li id="boys"><a href="boys.asp?id=All">BOYS</a></li>
  3. <li id="girls"><a href="girls.asp?id=All">GIRLS</a></li>
  4. <li id="everyone"><a href="everyone.asp?id=All">EVERYONE</a></li>
  5. <li id="kids"><a href="kids.asp?id=All">KIDS</a></li>
  6. <li id="news"><a href="http://www.yaketyyak.co.uk/news/">NEWS</a></li>
  7. <li id="talent"><a href="newtalent.asp?id=All">NEW TALENT</a></li>
  8. <li id="home"><a href="http://bytes.com/submit/index.asp">HOME</a></li>
  9. </ul>
i want to make the new talent appear on 2 lines

css as follows

Expand|Select|Wrap|Line Numbers
  1. #topnav {
  2.     /*background-color:#0C9;*/
  3.     margin: 0 auto;
  4.     padding: 10px;
  5.     width: 1600px;
  6.     text-align:center;
  7.     left: 0px;
  8. }
  9. #topnav li {
  10.     display: inline;
  11. }
  12.  
  13. #girls a{
  14.     padding: 10px;
  15.     font-family: 'Nunito', sans-serif;
  16.     font-weight:bold;
  17.     font-size:34px;
  18.     color:#999;
  19.     text-shadow: 0px 0px 2px #999, 0px 5px 10px #999;
  20.     filter: Shadow(Color=#999, Direction=45, Strength=2);
  21. }
  22. #everyone a{
  23.     padding: 10px;
  24.     font-family: 'Nunito', sans-serif;
  25.     font-weight:bold;
  26.     font-size:34px;
  27.     color: #999;
  28.     text-shadow: 0px 0px 2px #999, 0px 5px 10px #999;
  29.     filter: Shadow(Color=#999, Direction=45, Strength=2);
  30.     /*background-color:#FF9B9B;*/
  31. }
  32. #talent a{
  33.     padding: 10px;
  34.     font-family: 'Nunito', sans-serif;
  35.     font-weight:bold;
  36.     font-size:34px;
  37.     color:#999;
  38.     text-shadow: 0px 0px 2px #999, 0px 5px 10px #999;
  39.     filter: Shadow(Color=#999, Direction=45, Strength=2);
  40.     /*background-color:#FF9B9B;*/
  41. }
  42. #boys a{
  43.     padding: 10px;
  44.     font-family: 'Nunito', sans-serif;
  45.     font-weight:bold;
  46.     font-size:34px;
  47.     color:#999;
  48.     text-shadow: 0px 0px 2px #999, 0px 5px 10px #999;
  49.     filter: Shadow(Color=#999, Direction=45, Strength=2);
  50.     /*background-color:#FF9B9B;*/
  51. }
  52. #home a{
  53.     padding: 10px;
  54.     font-family: 'Nunito', sans-serif;
  55.     font-weight:bold;
  56.     font-size:34px;
  57.     color:#999;
  58.     text-shadow: 0px 0px 2px #999, 0px 5px 10px #999;
  59.     filter: Shadow(Color=#999, Direction=45, Strength=2);
  60.     /*background-color:#FF9B9B;*/
  61. }
  62. #news a{
  63.     padding: 10px;
  64.     font-family: 'Nunito', sans-serif;
  65.     font-weight:bold;
  66.     font-size:34px;
  67.     color:#999;
  68.     text-shadow: 0px 0px 2px #999, 0px 5px 10px #999;
  69.     filter: Shadow(Color=#999, Direction=45, Strength=2);
  70.     /*background-color:#FF9B9B;*/
  71. }
  72. #kids a{
  73.     padding: 10px;
  74.     font-family: 'Nunito', sans-serif;
  75.     font-weight:bold;
  76.     font-size:34px;
  77.     color:#999;
  78.     text-shadow: 0px 0px 2px #999, 0px 5px 10px #999;
  79.     filter: Shadow(Color=#999, Direction=45, Strength=2);
  80.     /*background-color:#FF9B9B;*/*
  81. }
any help appreciated
Jun 25 '13 #1
1 1835
Hi

Although I can't exatly understand what you are trying to say,but based on your program,I beleive that you are trying to repeat one of the list items several times without repeating it in unordered list.

I can share a snippet.Please do have a look at it.

Expand|Select|Wrap|Line Numbers
  1. <p>1: <select class="repeat"></select> is a {TextField}</p>
  2. <p>2: <select class="repeat"></select> is a {TextField}</p>
  3. <p>3: <select class="repeat"></select> is a {TextField}​​​​​​​​​​​​​​​​​​</p>​​​​​​​​​
  4.  
  5. <script type="text/javascript">
  6.     var optionOpen = "<option>";
  7.     var optionClosed = "</option>"​​​​​​​​​​​​​​​​​;​​
  8.     var selectItems = ["firstItem", "secondItem", "thirdItem"];
  9.  
  10.     $(".repeat").each(function(){
  11.         for (key in selectItems)
  12.         {
  13.             $(this).append(optionOpen + selectItems[key] + optionClosed);
  14.         }
  15.     });
  16. </script>
  17.  
  18.  
Aug 23 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Sidharta | last post by:
Hi all, how come this doesn't work????? # convert to unix new lines $text = preg_replace("/\r\n/", "\n", $text); # remove extra new lines $text = preg_replace("/\n+/", "\n", $text); is...
8
by: fleemo17 | last post by:
When designing the navigation for a website, should one use images as navigation buttons or text? A purely text navigation system would offer faster download times, but would also allow the user...
2
by: Adonis | last post by:
I have an XML file hosted by my ISP free web space. It naively treats the file as text/plain. I would like to convert this data into a DOM object. So far my googling has turned up nothing, although...
0
by: sushant.bhatia | last post by:
Does anyone have any suggestions on how to accomplish TTS navigation using SAPI? For instance, skip by line, skip by word, skip by sentence, skip by character. Thanks.
10
by: RodBillett | last post by:
Using SmartNavigation. Windows2003 Server Framework 1.0 (3705) IIS6 and I have IIS configured to utilize the 1.0 framework. Any Ideas why I would be getting the following jscript error within...
4
by: stew34 | last post by:
I have created a css navigation, with rollover states and div classes, it all looks fine when previewed but once I upload the page to host space all the text navigation appears red. This does not...
3
by: ad | last post by:
I have set a TextBox to MultiLines and set the rows to 10. I assigned the Text of the TextBox some lins of text at desgin time, but only the first line remain in the TextBox. How can I assign...
2
by: flyzone | last post by:
Goodmorning people :) I have just started to learn this language and i have a logical problem. I need to write a program to parse various file of text. Here two sample: --------------- trial...
3
by: sam_sam80 | last post by:
Hi Evrybody, Some one can tell me how to display texte or tranparent icon (like mouse pointer) over a runnig video. This video is an IP camera stream displaying within control (Vitamin Control)...
4
by: Mudcat | last post by:
I've tried quite a few things to get this correct but have hit a couple of sticking points that I can't figure out. I need to ge the Text box to function like the 'wraplength' option in a Label. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.