css highlight current page - css-sprites

I've found some tutorials regarding sprite navigation menu. My problem now when I make it locally, I tried to select each menu and it was not highlighted. Hover is working fine only highlighted selected menu is doesn't work.
here is the link
http://webberzsoft.com/tabmenu/services.htm
Any help would very much appreciated.
Thanks
Tirso

From what I see, all of your pages' <body>s have a "home" id.
For the current page to be highlighted with the CSS rules you're using, you should have corresponding body id's for each page.

Related

Jumping through the Vaadin CDIView Menuitems

the following picture is just a sample picture to make the explanation of my problem easier.
I am using Vaadin 7.x. and have a CDIView in my project.
Now, imagine that we're already in "Buttons & Links" page and want to jump to "Labels" page using the "Open Labels" Button on the page.
I already used a navigator to navigate to the "Labels" page, but the problem is, when I navigate to "Labels" page, the "Buttons & Links" item in Vaadin CDIView stays selected, instead of getting deselected. And of course the "Labels" item should get selected.
My second problem will be, calling a method from the Label page, when I open the page using the "Open Labels" Button.
More Information:
All the MenuItems are added using a #CDIView annotation top on the class and I just get to navigate them through the names of each class.
I'm gonna be happy with every solution and suggestion you can give me.
Thanks in advance and best regards.
R.

anchor tag all jump when returning to the home page because of slider

The anchor tags I have in the nav bar work fine on the home page, but if you click on one from another page, it will go to the correct spot only to jump down when the slider loads.
Is there some kind of fix for this problem?
This is the site:
http://www.nfgraphicdesign.ca/wpdemo
if you navigate from
http://www.nfgraphicdesign.ca/wpdemo/buyers/ and current listings you will see what I mean.
Thanks a lot for any help with this.

jquerymobile button's css not applied

I'm trying to add a delete button to a custom div. However when the page is loaded, the jquery mobile button does not take the format of jquery and displays it like a hyperlink.
var currDelButton = $("<a>").attr("href","#").attr("data-role","button").attr("data-icon","delete").attr("data-iconpos","left").text("حذف");
anyone has an idea about this issue?
Best Regards
Ali
If you are adding the button after the page is loaded then you need to refresh the element for example $("#mybutton").button(); should work.
here is a working example with the code you provided: http://jsfiddle.net/ashanova/RQVd8/1/
call the .page for the main wrapper where new buttons are added.
$("#content").page();

How can I change the title of a dynamic page?

I have a jQuery Mobile app that's just like the dynamic page sample from the jQuery Mobile documentation http://jquerymobile.com/test/docs/pages/dynamic-samples/sample-reuse-page.html.
Everything works fine, but just as in the example I can't get the page titles to change accordingly to the requested page. On the basis of the example: When you click the category Colors in the Categories section, the new page has the title Colors, but when you go back and then select Vehicles, the page title is still Colors. How can I fix this?
I tried $page.attr('data-title', category.name) in the showCategory function but it won't work. Any ideas?
You can also use something like this -
$("title").html(category.name);
I don't see the behaviour you're describing in the example. However, to change the title wouldn't this do the job?
document.title = category.name;

IE Radio Button Alignment Issue

I have an ASP.Net-MVC application that is mostly complete. However, I have one page that contains radio buttons. When that page is displayed in Firefox or Chrome, the radio buttons are displayed in a horizontal row (which is what I want). But when the page loads in IE, the radio buttons show up in a column. I am using the Html.RadioButton helper.
I have tried editing several of the css properties in the master stylesheet, but I have not been able to come up with a solution.
Have any of you encountered this before? If so, what could the solution be?
It would be handy #Jacob, if you could list what you have tried.
Have you tried the css display:inline?
Or have you tried putting them as <li>'s in a <ul> and then setting the display:inline on the ul or the li's?
I ended up just putting the radio buttons in a table row. It's not the most elegant solution, but it works all the time.

Resources