Jump to content

Foundation CSS Help


bondimedical

Recommended Posts

All the text in the Navigation headings has the CSS selector:

.top-bar-section ul li > a {

The difference among all of them is the name of the category. So, you need to find the specific name of the one category you want to have a different styling.

http://www.w3schools.com/css/css_attribute_selectors.asp

In the file cubecart.default.css, add:

.top-bar-section ul li > a[title="Test Category 3"] { color: green; }

There is also the color of the text when the mouse cursor is hovering over it:

.top-bar-section ul li:hover:not(.has-form) > a[title="Test Category 3"] { color: blue; }

Link to comment
Share on other sites

Thank you for your help.

I have one other CSS issue. I am using the following code to have responsive YouTube videos.

.videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

On Foundation however it looks a bit big because the video touches the left and right hand edges of the border. How can I put a space of 30px on the left and right hand sides?

Link to comment
Share on other sites

I think your class is actually .video-container (not .videoWrapper, unless you are working on a development installation).

The <iframe> seems to have fixed pixel height (315) and width (560) attributes. Once you remove those attributes, test the responsiveness.

But it is weird how the iframe gets sized. For the iframe rule, try width: 90% and add margin: 0 2% 0 30px;

Link to comment
Share on other sites

I have removed the height and width attributes and changed the iframe rule however some issues came up.

The width of 90% is good however the 30px moves it over to the right too much on mobiles. How do I centre instead?

Also, black bars have appeared on the top and bottom of the YouTube video?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...