Jump to content

Editing a navigation block of PHP code


metacym

Recommended Posts

Hello. pretty new to using PHP. I am trying to add pages to the navigation of this block of code:

But i am not sure which lines of code correspond to the navigation buttons.

 

/* -------------------------------- 
Navigation
-------------------------------- */

div#navigation {background-color: #333;}

	div#navigation div#menu {height: 56px; overflow: hidden;}

	div#navigation div#menu ol {float: left;}
	div#navigation div#menu ol li{border-left: 1px solid #666;float: left;}
	div#navigation div#menu ol li#menulast{border-right: 1px solid #666;}
		div#navigation div#menu ol li a {display: block; height: 56px; padding-left: 31px; width: 129px;}

			/* Vertical centring with line-height:0 and marging-top */
			div#navigation div#menu ol li a small{display: block; line-height:0; margin-top: -7px;}

	div#navigation div#menu div#feed{display: inline; float: right;}
		div#navigation div#menu div#feed a {background: transparent url('../images/feed-nav.gif') no-repeat;display: block; height: 56px; width: 66px;}
		div#navigation div#menu div#feed a:hover{background-position: 0 -56px;}
			div#navigation div#menu div#feed a span{display:none;}

Link to comment
https://forums.phpfreaks.com/topic/180217-editing-a-navigation-block-of-php-code/
Share on other sites

neither are we lol jk. this isnt php you should post this in the css forums. but just to help you out, i will give you some info on how css works. the line that says :

 

div#navigation

 

has a way of identifying what it is. For example that line says that the div that has the id of navigation(#navigation refers to the id) has a background color of #333. I would highly suggest that you use firefox and download a plugin called firebug. It will help you find the element and the property that you are looking for

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.