Solved

How to remove an element from my CSS Website

Posted on 2012-04-05
3
273 Views
Last Modified: 2012-09-12
Hi Experts,

Does anyone know how I can get rid of the text "Regular Price" and "Member Price" in this block?  I am using Magento, but that shouldn't really matter.

I need to know where to edit the CSS to remove it from that block only (for all products).


Link:  http://www.hawaiipacificparks.org/store/haleakala-short-sleeve-t-shirt-dietrich-varez.html

Example
0
Comment
Question by:activematx
3 Comments
 
LVL 4

Accepted Solution

by:
TechHelpr08210 earned 300 total points
ID: 37814972
Hello,

The following information contains a possible solution to your request based on current best practices and preferred coding standards.

The CSS class(s) that are controlling the style of the displayed info on the HTML page are set universally and referred to in sub-classes to add modifications to apply style to specific content. Therefore, a new style needs to be created to avoid altering other page content.

The following code will remove the specific spans you want to remove by adding display:none to the associated class (as opposed to visibility:hidden).

Add the style below to the bottom of your CSS file. This will only affect the information without modifying the rest of the page.

.product .product-details .price-box {display:none;}

Open in new window


This is the URL of the file to be modified to remove the elements.

CSS File location:

/store/skin/frontend/default/ma_furniturestore_orange/css/styles.css

NOTE: Display:none removes the visible elements from the layout but leaves the html in the page source so it can be by search engines and/or accessibility software.
However, visibility:hidden would hide the text but would still preserve the spans in the layout which could be a problem.

More on that topic here:

http://www.w3schools.com/css/css_display_visibility.asp
0
 
LVL 12

Assisted Solution

by:Anuradha Goli
Anuradha Goli earned 200 total points
ID: 37815679
change style
.block .regular-price .price {
color: #2E6DA2;
display: none; //newly added 
}

Open in new window


After changes
0
 
LVL 9

Author Comment

by:activematx
ID: 37872841
I am currently applying the solutions from this question to the website.  Please give me a little more time to figure this all out.  Thanks.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question