[Pro] Carousel - Tab Borders

I’ve seen Walter’s instructions about setting the CSS style in the ‘.active’ Tag, and I have seen other instruction from an older post regarding, specifically, borders. However, the previous border instruction related to graphic items and used the Tag “.controls a image.active” to accomplish this.
I am using HTML items and the Carousel Text Tab, and this way does not work (I imagine because it is not an image I am trying to control). Wondering what my Tag to control the HTML box that contains the action item should be.
Also wondering if, once I have the correct Tag, I am correct that “border-right” and “0” in the Name and Value fields, respectively, will accomplish my goal of taking away the right border of my tab (which has a full border around it in it’s normal state).
Suggestions appreciated…

Thanks, Aaron


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I am correct that “border-right” and “0” in the Name and Value fields, respectively, will accomplish my goal of taking away the right border of my tab (which has a full border around it in it’s normal state).

I think I would use border-right-color: white !important (or whatever the bg color is)

If you use border-right then the parameters should be border-right: width style color - or you could try border-right: none !important;

But test cross browser - some may not behave as expected.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, Dave. I will try that once I figure out what the right tag is. It seems that the “.active” tag affects only the small box created by the inline action (Carousel Text Tab). My biggest challenge right now is figuring out how to point my borders instructions to the larger HTML box that houses that action. Any idea for me on that?

Thanks, Aaron


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Post a link to your online example

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I have just had a look at this and I think that what you want to do would require a parent selector ie the parent of the text link that has the active class.

I don’t think that this is doable with CSS - I think it would have to be done with javascript.

Why do you particularly want to use Text Tabs?

There are other options but I would need to see what you have/are trying to achieve.

This example is a clunky hand coded one http://www.deltadesign.co/examples/storyboard.html

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The site is not hosted yet, and I don’t know how to post the pages I am working on.

Hopefully, this description will suffice:

I have a large HTML item that is the Carousel. It has borders on the top, bottom and right sides. It will only hold text.

I have four similarly configured HTML items that are Carousel Panes.

I have two graphic text items (above and below the large HTML item) that are Carousel Buttons.

I have five identical HTML items (rectangles) that are stacked vertically and butt up against the left side of the large Carousel item. These are, visually, the tabs. These each have a child Carousel Text Tab action item inline in them which are actually the tabs. They will only be text. Each of these parent HTML rectangles has a full border around it.

What I want is for the active tab to have the right border removed so that the tab and the Carousel are joined, or open to each other.

When I apply border instructions to the “.active” Tag, nothing happens. The only thing I seem to be able to change with that Tag are character styles of the immediate text area - nothing that affects the whole parent HTML rectangle.

I was hoping this was as simple as identifying a different type of Tag to which I should apply the CSS border instructions - similar to the one Walter mentioned in an old post “.controls a image.active”, but pertaining to the HTML item.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I was hoping this was as simple as identifying a different type of Tag to which I should apply the CSS border instructions - similar to the one Walter mentioned in an old post “.controls a image.active”, but pertaining to the HTML item.

Nope

But I dont see why you cannot make your ‘five identical HTML items’ graphic items instead.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Well, I went the graphic route before and did not think it worked, so I ended up fixating on the HTML.

I just went back and tried the graphic tab route again with a bit more thorough effort on the Extended styles under the “.active” tag.

The best I could get was ADDING a different color border outside of the existing border. It seems that my problem is that I can’t figure out how to REMOVE the original border that was set around the item in the “item appearance settings” in the inspector.

Here’s exactly what I have in the Extended Name and Value fields for the “.active” tag right now:

border-color red !important
border-style solid
border-width 1px 0 1px 1px

(I am only using red so I can see the results against my white background - once I know it works, I will go back to white).

So, any idea how I get rid of the pesky first border?

Thanks - Aaron


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Well, I went the graphic route before and did not think it worked, so I ended up fixating on the HTML.

I just went back and tried the graphic tab route again with a bit more thorough effort on the Extended styles under the “.active” tag.

The best I could get was ADDING a different color border outside of the existing border. It seems that my problem is that I can’t figure out how to REMOVE the original border that was set around the item in the “item appearance settings” in the inspector.

Here’s exactly what I have in the Extended Name and Value fields for the “.active” tag right now:

border-color red !important
border-style solid
border-width 1px 0 1px 1px

(I am only using red so I can see the results against my white background - once I know it works, I will go back to white).

So, any idea how I get rid of the pesky first border?

Thanks - Aaron


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Figured one way out. May not be the best way, but it seems to work in all browsers I can test on.

Remove borders from “Item Appearance Settings” in the inspector since this apparently adds them to the DIV (I’m way out over my skis here…) which doesn’t allow modification on an image-by-image basis (as in the “.active” Tag).

Modify for the graphic tab item in Menu>Item>Extended with the normal-state border that is desired using the styling code described above.

Then modify the “.active” Tag in Extended using the appropriate border modifications as described above.

This allows the “.active” tag to modify the image-specific borders on a case-by-case basis.

Thanks, Dave, for the pointers and prodding me back to the graphic item direction.

Special thanks to Ernie Simpson for the following post from 2007. http://www.freewaytalk.net/thread/view/10021


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Figured one way out. May not be the best way, but it seems to work in all browsers I can test on.

Remove borders from “Item Appearance Settings” in the inspector since this apparently adds them to the DIV (I’m way out over my skis here…) which doesn’t allow modification on an image-by-image basis (as in the “.active” Tag).

Modify for the graphic tab item in Menu>Item>Extended with the normal-state border that is desired using the styling code described above.

Then modify the “.active” Tag in Extended using the appropriate border modifications as described above.

This allows the “.active” tag to modify the image-specific borders on a case-by-case basis.

Thanks, Dave, for the pointers and prodding me back to the graphic item direction.

Special thanks to Ernie Simpson for the following post from 2007. http://www.freewaytalk.net/thread/view/10021


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You could go back to your HTML tabs, you just have to adjust where you are putting the border. Take it off of the HTML box, and add it to the A (link) tag that the Action creates. That A tag is what will be modified by the JavaScript when the target of the carousel changes.

To make the A tag look like a solid box, with the borders on the outside of it, you need to do two things. First, set its display attribute to block. Second, use padding to create the height of the box (split between top and bottom) and set a fixed width and use text-align to either center or justify the text left or right.

Here’s an example (remember most of this has to be done with Extended attributes in Freeway, or with the External Stylesheets Action and a dedicated CSS editor or text editor).

#myTabsBox a {
	display: block;
	width: 100px;
	text-align: center;
	padding: 8px 0;
	text-decoration: none;
	border: 1px 0 1px 1px solid black;
	background-color: #ccc;
}

#myTabsBox a.active {
	border-color: red;
	color: #fff;
	background-color: #000;
}

#myTabsBox p {
	padding: 0;
	margin: 0;
}

To make the CSS this simple, you would need to follow this construction technique:

HTML box with the Title set to myTabsBox
	Inline Carousel Text Tab
	Inline Carousel Text Tab
	Inline Carousel Text Tab
	…
/HTML box

This will be completely not WYSIWYG in the Freeway design view, but it will look correct in the preview mode or a browser.

Remember, you can set the text style for your tabs using the Links segment of the Style tab in the Inspector while you have your myTabsBox box selected. I did a little hand-coded link color, underline, and background styling just to show that you don’t have to stick to the border color here. Anything that you want can be set on the A tag. It’s a fully structural and dimensional tag once you set it to display:block.

Walter

On Sep 10, 2012, at 12:45 AM, Aaron Corey wrote:

Figured one way out. May not be the best way, but it seems to work in all browsers I can test on.

Remove borders from “Item Appearance Settings” in the inspector since this apparently adds them to the DIV (I’m way out over my skis here…) which doesn’t allow modification on an image-by-image basis (as in the “.active” Tag).

Modify for the graphic tab item in Menu>Item>Extended with the normal-state border that is desired using the styling code described above.

Then modify the “.active” Tag in Extended using the appropriate border modifications as described above.

This allows the “.active” tag to modify the image-specific borders on a case-by-case basis.

Thanks, Dave, for the pointers and prodding me back to the graphic item direction.

Special thanks to Ernie Simpson for the following post from 2007. http://www.freewaytalk.net/thread/view/10021


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, Walt, as usual. I’ll probably stick with the graphic items at this point since I’m keeping the look of this carousel extremely simple/plain and I’ve got it figured out that way. I will keep these styling tips in mind, though, as I’m sure they will come in handy for an upcoming challenge.

Also, retro-thanks for information from one of your old post I dug up that guided me through setting tab backgrounds using “.controls a img” and the associated hover and active tags.

Very much appreciated…

Aaron


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, Walt, as usual. I’ll probably stick with the graphic items at this point since I’m keeping the look of this carousel extremely simple/plain and I’ve got it figured out that way. I will keep these styling tips in mind, though, as I’m sure they will come in handy for an upcoming challenge.

Also, retro-thanks for information from one of your old post I dug up that guided me through setting tab backgrounds using “.controls a img” and the associated hover and active tags.

Very much appreciated…

Aaron


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options