473,406 Members | 2,705 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,406 software developers and data experts.

css Menu

html coding:
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <link type="text/css" rel="stylesheet" href="css/style.css"/>
  4. <title>welcome Juravis Technologies</title>
  5. </head>
  6. <body>
  7. <div class="container">
  8. <div class="mainpic">
  9. <div><img src="http://bytes.com/images/main.jpg" align="center"></div>
  10. <div class="menu">
  11. <ul>
  12. <li><a href="#">Link one</a></li>
  13. <li><a href="#">Link two</a></li>
  14. <li><a href="#">Link three</a></li>
  15. <li><a href="#">Link four</a></li>
  16. </ul>
  17.  
  18. </div>
  19.         </div>   
  20. </body>
  21. </html>    
css coding:

Expand|Select|Wrap|Line Numbers
  1. body
  2. {
  3. background-color:white;
  4.  
  5. }
  6. .mainpic h1,h2
  7. {
  8. color:white;
  9. text-align:right;
  10. left:550px;
  11. top:100px;
  12. }
  13. .menu
  14. {
  15. height:50px;
  16. width:800px;
  17. background-color:800000;
  18. margin-left:auto;
  19. margin-right:auto;
  20. }
  21.  
  22. .menu ul
  23. {
  24. float:left;
  25. width:100%;
  26. padding:0;
  27. margin:0;
  28. list-style-type:none;
  29. }
  30. menu a
  31. {
  32. float:left;
  33. color:pink;
  34. padding-top:25px;
  35. width:6em;
  36. text-decoration:none;
  37. color:white;
  38. background-color:purple;
  39. padding:0;
  40. border-right:1px solid white;
  41. }
  42. a:hover {background-color:white;}
  43. li {display:inline;}
  44. .mainpic
  45. {
  46. margin:left:auto;
  47. margin:right:auto;
  48. }

this is coding pbm here. i want only center the picture but this coding only display left side.


then i want correct position menu . but the menu working right side.

how will do
Oct 11 '13 #1
2 1366
Dormilich
8,658 Expert Mod 8TB
check your error console, you have syntax errors in your CSS.
Oct 15 '13 #2
Thanx u so much bro ,for giving a small idea regarding making use of css.
Oct 24 '13 #3

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

Similar topics

1
by: Macamba | last post by:
Hi all, I am currently developing a website for a voluntary organisation. It is my first step in website development. The dynamic menu I developed has some bugs, which I addressed in another...
1
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
8
by: Dennis C. Drumm | last post by:
Is there a way to modify the standard context menu shown when someone right clicks in a windows text box and that would work for all open windows applications? The standard context menu for...
1
by: Anthony | last post by:
Below is a script I found at http://javascript.internet.com/ for a cascading menu. The script works great but there is one thing that I would like modified. BecauseI am just learning javascript,...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
3
by: Lady Gray | last post by:
Link to site: http://kukuwhelkrevolution.artistyandprose.com/Index/ Here's the HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.