SlideDeck issue, CSS Float question, & google CSE questions...

vrufusx65v

New Member
Messages
74
Reaction score
0
Points
0
LIVE SITE REFERENCE: betatest.shotsoundstudios.net

I downloaded SlideDeck and installed it fine except for one problem. the index numbers on the bottom for some reason are going outside of their columns. Why?

2nd Question: I have a "date of publication" box on my site that's wanting to be difficult. I have the text inside the box centered, but the text is staying at the top of the box. I would like to completely center the text inside of the box and "margin-top: XXpx" isn't working. It's just moving the entire box down. why is that and how can i fix it.

3rd Question: If you look at my live test site you'll see at the top right a search box. this question probably to others will be easy but apparently not to me. I would like a Google CSE where the search box is now, AND Skin the Google CSE with what i have on my site now. I have provided the code needed inside of my style.css and index.html. They're put in as comments.


I know I'm asking alot from you [the x10 Forum] so as a thank you:

*PRIZE*
300 Credits to the person that can fix ALL 3 QUESTIONS
(i know its not alot but it's better than nothing and that's almost all i have...)
*PRIZE*

HTML for 2nd Question
Code:
<div class="column1">
            <div class="meta-date" id="meta-text">
                <h4>Dec</h4>
                <h3>11</h3>
            </div>
            <div id="article-title">
                <h2>CoD Vs. Nazi Zombies</h2>
                <h5 style="text-align:left">Posted in: Video Games &bull; Entertainment</h5>
            </div>
            <div id="article-cover">
                <p>
                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                </p>
            </div>
        </div>

CSS for 2nd Question
Code:
.column1 {
    float:left;
    margin-top:20px;
    margin-left:35px;
    width:650px;
    height:940px;
}

.meta-date {
    float:left;
    margin-top:px;
    margin-left:px;
    background-color:#09a2da;
    width:40px;
    height:40px;
    border-bottom-left-radius:5px;
    border-bottom-right-radius:5px;
    border-top-left-radius:5px;
    border-top-right-radius:5px;
    border:solid #0580ad 1px;
}

#meta-text {
    float:left;
    margin-top:0px;
    font-family:"myriadpro-bold", Trebuchet MS, sans-serif;
}

#article-title {
    float:left;
    margin-top:5px;
    margin-left:20px;   
}

#article-cover {
    float:left;
    margin-top:15px;
    margin-left:px;
    text-align:left;
}

==========================================

HTML for 3rd Question
Code:
 <div id="cse" style="width: 100%;">Loading</div>
            <script src="http://www.google.com/jsapi" type="text/javascript"></script>
            <script type="text/javascript">
                google.load('search', '1', {language : 'en'});
                google.setOnLoadCallback(function() {
                var customSearchControl = new google.search.CustomSearchControl('008835135225647814369:bg7vtsjoucg');
                customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
                customSearchControl.draw('cse');
                }, true);
            </script>

CSS for 3rd Question
Code:
/*=================================== Google Search Bar ==============*/
  .gsc-control-cse {
    font-family: "Trebuchet MS", sans-serif;
    border-color: #FFFFFF;
    background-color: #FFFFFF;
  }
  input.gsc-input {
    border-color: #595959;
  }
  input.gsc-search-button {
    border-color: #000000;
    background-color: #000000;
  }
  .gsc-tabHeader.gsc-tabhInactive {
    border-color: #E9E9E9;
    background-color: #E9E9E9;
  }
  .gsc-tabHeader.gsc-tabhActive {
    border-top-color: #FF9900;
    border-left-color: #E9E9E9;
    border-right-color: #E9E9E9;
    background-color: #FFFFFF;
  }
  .gsc-tabsArea {
    border-color: #E9E9E9;
  }
  .gsc-webResult.gsc-result {
    border-color: #FFFFFF;
    background-color: #FFFFFF;
  }
  .gsc-webResult.gsc-result:hover {
    border-color: #FFFFFF;
    background-color: #FFFFFF;
  }
  .gs-webResult.gs-result a.gs-title:link,
  .gs-webResult.gs-result a.gs-title:link b {
    color: #0000CC;
  }
  .gs-webResult.gs-result a.gs-title:visited,
  .gs-webResult.gs-result a.gs-title:visited b {
    color: #0000CC;
  }
  .gs-webResult.gs-result a.gs-title:hover,
  .gs-webResult.gs-result a.gs-title:hover b {
    color: #0000CC;
  }
  .gs-webResult.gs-result a.gs-title:active,
  .gs-webResult.gs-result a.gs-title:active b {
    color: #0000CC;
  }
  .gsc-cursor-page {
    color: #0000CC;
  }
  a.gsc-trailing-more-results:link {
    color: #0000CC;
  }
  .gs-webResult.gs-result .gs-snippet {
    color: #000000;
  }
  .gs-webResult.gs-result .gs-visibleUrl {
    color: #008000;
  }
  .gs-webResult.gs-result .gs-visibleUrl-short {
    color: #008000;
  }
  
  .gs-webResult.gs-result .gs-visibleUrl-short {
    display: none;
  }
  .gs-webResult.gs-result .gs-visibleUrl-long {
    display: block;
  }
  .gsc-cursor-box {
    border-color: #FFFFFF;
  }
  .gsc-results .gsc-cursor-page {
    border-color: #E9E9E9;
    background-color: #FFFFFF;
  }
  .gsc-results .gsc-cursor-page.gsc-cursor-current-page {
    border-color: #FF9900;
    background-color: #FFFFFF;
  }
  .gs-promotion.gs-result {
    border-color: #336699;
    background-color: #FFFFFF;
  }
  .gs-promotion.gs-result a.gs-title:link {
    color: #0000CC;
  }
  .gs-promotion.gs-result a.gs-title:visited {
    color: #0000CC;
  }
  .gs-promotion.gs-result a.gs-title:hover {
    color: #0000CC;
  }
  .gs-promotion.gs-result a.gs-title:active {
    color: #0000CC;
  }
  .gs-promotion.gs-result .gs-snippet {
    color: #000000;
  }
  .gs-promotion.gs-result .gs-visibleUrl,
  .gs-promotion.gs-result .gs-visibleUrl-short {
    color: #008000;
  }
/*=================================== Google Search Bar ==============*/
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
  1. The numbers aren't outside the columns, they have a background color that covers the background image. Try:
    Code:
    dl.slidedeck dt.spine .index,
    dl.slidedeck dt.spine.active .index {
        background: transparent;
    }
  2. Until the features of CSS3 are settled and then widely supported, you'll have to use a few tricks to vertically center content.
  3. There isn't anything special about styling a Google custom search. Simply add selectors to your rule sets that target the elements (e.g. input.gsc-input, input.gsc-search-button) of the Google search form to apply your styling. If you need something more specific, you'll need to show us the source for the generated search form. We can't style a script.

If you feel tempted to give me any credits, you needn't bother. I have more than enough.
 

vrufusx65v

New Member
Messages
74
Reaction score
0
Points
0
1. it doesn't seem to work. I'm experimenting on it right now and nothing seems to work except when i hover over the inactive spines. The only thing i changed was applying "Background: None;" to these four classes:

Original
Code:
.skin-slidedeck dl.slidedeck dt.spine .index {
	margin-bottom: 2px;
    font-size: 20px;
	font-weight: normal;
	font-family: "myriadpro-bold", Arial, Helvetica, sans-serif;
	color: #505050;

}
.skin-slidedeck dl.slidedeck dt.spine.active .index { margin-bottom: 0; }

/*
 * The hovered state of a SlideDeck spine index label.
 */
.skin-slidedeck dl.slidedeck dt.spine:hover .index { color: #000000; }

/*
 * The active state of a SlideDeck spine index label.
 */
.skin-slidedeck dl.slidedeck dt.spine.active .index { color: #ffffff; }

Modified
Code:
.skin-slidedeck dl.slidedeck dt.spine .index {
	margin-bottom: 2px;
    font-size: 20px;
	font-weight: normal;
	font-family: "myriadpro-bold", Arial, Helvetica, sans-serif;
	color: #505050;
	background:none;
}
.skin-slidedeck dl.slidedeck dt.spine.active .index { margin-bottom: 0; background:none; }

/*
 * The hovered state of a SlideDeck spine index label.
 */
.skin-slidedeck dl.slidedeck dt.spine:hover .index { color: #000000; background:none; }

/*
 * The active state of a SlideDeck spine index label.
 */
.skin-slidedeck dl.slidedeck dt.spine.active .index { color: #ffffff; background:none; }

2. I tried using the "Vertical-align: middle (or center);" along with using percentages and it does nothing in any browser.

Code:
#meta-text {
	float:left;
	vertical-align:middle; /*I swapped "middle" for "center" and "baseline" as well as %s too...*/
	font-family:"myriadpro-bold", Trebuchet MS, sans-serif;
}

3. havent touched it yet, i will after i get done with 1 and 2 first...
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
  1. 1. it doesn't seem to work. I'm experimenting on it right now and nothing seems to work except when i hover over the inactive spines.
    What browser are you testing in? It works in FF 3.6 and Webkit browsers.
    It's just a matter of finding the correct selector. If you inspect the elements (using e.g. firebug), you'll find the following rules:
    Code:
    /* at slidedeck.skin.ie.css, line 13 */
    .skin-slidedeck dl.slidedeck dt.spine .index, .skin-slidedeck dl.slidedeck ul.verticalSlideNav li a {
        background-color: #F6F6F6;
    }
    
    /* at slidedeck.skin.ie.css, line 19 */
    .skin-slidedeck dl.slidedeck dt.spine.active .index, .skin-slidedeck dl.slidedeck dt.spine.active ul.verticalSlideNav li a {
        background-color: #181818;
    }
    Those are the rules you need to override or remove. Setting "background" to "none" is equivalent to setting "background-image" to "none" (which it already is) and "background-color" to its initial value, which is "transparent".
  2. 2. I tried using the "Vertical-align: middle (or center);" along with using percentages and it does nothing in any browser.
    "vertical-align" applies to table cells and inline elements only. As the sig says, read the link in my previous post.
 

vrufusx65v

New Member
Messages
74
Reaction score
0
Points
0
What browser are you testing in? It works in FF 3.6 and Webkit browsers.

1.I always check first within safari [for windows], then i go to Firefox and chrome, then IE <==[Not a fan of at all...]
And that code fix worked for every browser BUT safari. I don't know why yet...

2. Sorry, i skimmed rather than read it. I'll go back and take a more thorough look.

---------- Post added at 03:30 AM ---------- Previous post was at 02:41 AM ----------

I have been looking at the google code and i am now frustrated. I try to manipulate and change the search box, and this random id comes from no where and is getting rules from somewhere other than the CSS... please look at the id "cse-search-form" and tell me where it's getting it's rules from cause in dreamweaver im not finding it at all inside gcse-default.CSS

gcse-default.CSS
Code:
/**
 * Default theme
 *
 */
/* Slight reset to make the preview have ample padding. */
.cse .gsc-control-cse,
.gsc-control-cse {
  padding: 2%;
  width: 96%;
}
.cse .gsc-branding,
.gsc-branding {
  display: none;
}
.cse .gsc-control-cse div,
.gsc-control-cse div {
  position: normal;
}
/* Selector for entire element. */
.cse .gsc-control-cse,
.gsc-control-cse {
  background-color: #ffffff;
  border: 1px solid;
  border-color: #ffffff;
}
.cse .gsc-control-cse:after,
.gsc-control-cse:after {
  content:".";
  display:block;
  height:0;
  clear:both;
  visibility:hidden;
}
.cse .gsc-resultsHeader,
.gsc-resultsHeader {
  border: block;
}
/* Search button */
.cse input.gsc-search-button,
input.gsc-search-button {
  font-family: inherit;
  color: #000000;
  text-shadow: 0 1px 2px #FFFFFF;
  background-color: #CECECE;
  border: 1px outset;
  border-color: #666666;
  border-radius: 2px;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
}
/* Inactive tab */
.cse .gsc-tabHeader.gsc-tabhInactive,
.gsc-tabHeader.gsc-tabhInactive {
  border-bottom: none;
  color: #666666;
  background-color: #e9e9e9;
  border: 1px solid;
  border-color: #e9e9e9;
  border-bottom: none;
}
/* Active tab */
.cse .gsc-tabHeader.gsc-tabhActive,
.gsc-tabHeader.gsc-tabhActive {
  background-color: #FFFFFF;
  border: 1px solid;
  border-top: 2px solid;
  border-color: #e9e9e9;
  border-top-color: #FF9900;
  border-bottom: none;
}
/* This is the tab bar bottom border. */
.cse .gsc-tabsArea,
.gsc-tabsArea {
  margin-top: 1em;
  border-bottom: 1px solid #e9e9e9;
}
/* Inner wrapper for a result */
.cse .gsc-webResult.gsc-result,
.gsc-webResult.gsc-result {
  padding: .25em;
  border: 1px solid;
  border-color: #ffffff;
  margin-bottom: 1em;
}
/* Result hover event styling */
.cse .gsc-webResult.gsc-result:hover,
.gsc-webResult.gsc-result:hover {
  border: 1px solid;
  border-color: #FFFFFF;
}
/*Promotion Settings*/
/* The entire promo */
.cse .gs-promotion.gs-result,
.gs-promotion.gs-result {
  background-color: #FFFFFF;
  border: 1px solid;
  border-color: #336699;
}
/* Promotion image */
.cse .gs-promotion.gs-result .gs-promotion-image,
.gs-promotion.gs-result .gs-promotion-image {}
/* Promotion title */
.cse .gs-promotion.gs-result a.gs-title:link,
.gs-promotion.gs-result a.gs-title:link {
  color: #0000CC;
}
.cse .gs-promotion.gs-result a.gs-title:visited,
.gs-promotion.gs-result a.gs-title:visited {
  color: #0000CC;
}
.cse .gs-promotion.gs-result a.gs-title:hover,
.gs-promotion.gs-result a.gs-title:hover {
  color: #0000CC;
}
.cse .gs-promotion.gs-result a.gs-title:active,
.gs-promotion.gs-result a.gs-title:active {
  color: #0000CC;
}
/* Promotion snippet */
.cse .gs-promotion.gs-result .gs-snippet,
.gs-promotion.gs-result .gs-snippet {
  color: #000000;
}
/* Promotion url */
.cse .gs-promotion.gs-result .gs-visibleUrl,
.gs-promotion.gs-result .gs-visibleUrl {
  color: #008000;
}
/* Style for auto-completion table
 * .gsc-completion-selected : styling for a suggested query which the user has moused-over
 * .gsc-completion-container : styling for the table which contains the completions
 */
.gsc-completion-selected {
  background: #D5E2FF;
}
.gsc-completion-container {
  font-family: Arial, sans-serif;
  font-size: 13px;
  position: absolute;
  background: white;
  border: 1px solid #666666;
  margin-left: 0;
  margin-right: 0;
  /* The top, left, and width are set in JavaScript. */
}

/* Full URL */
.gs-webResult.gs-result .gs-visibleUrl-short {
  display: none;
}
.gs-webResult.gs-result .gs-visibleUrl-long {
  display: block;
}
 
Last edited:

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
1.I always check first within safari [for windows], then i go to Firefox and chrome, then IE <==[Not a fan of at all...]
And that code fix worked for every browser BUT safari. I don't know why yet...
Safari 5.0.3/Mac is fine. Make sure your version of Safari isn't outdated, and that Safari isn't fetching an old version of the style sheet from the cache.

I try to manipulate and change the search box, and this random id comes from no where and is getting rules from somewhere other than the CSS... please look at the id "cse-search-form" and tell me where it's getting it's rules from cause in dreamweaver im not finding it at all inside gcse-default.CSS
Don't rely on Dreamweaver for too much. Use the DOM and CSS inspectors in your browser. They'll show you which files define each ruleset, and some (Safari and IE) can show you in which file a rule in the computed style (the rule that ends up being used) is defined.

As for styling custom searches, you can also use your own form, or set the style for the custom search in the search control panel or search context file.
 

vrufusx65v

New Member
Messages
74
Reaction score
0
Points
0
okay, i have finally figured out the button and rearranging the search box. but i cant get the bloody search box to go transparent and accept the search box background picture...
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
Did you try using your own form? That's probably the simplest option when it comes to styling, since it gives you the most control over the structure and presentation of the search form.
 

vrufusx65v

New Member
Messages
74
Reaction score
0
Points
0
i'll try it, but im not sure how i would connect the form to the google search box...

---------- Post added 12-21-2010 at 12:25 AM ---------- Previous post was 12-20-2010 at 02:48 PM ----------

yeah, im confused as how to go about doing that...
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
Did you try
Code:
var drawOptions = new google.search.DrawOptions();
drawOptions.setInput(document.getElementById('query_input'));
as the previously linked document shows?
 

vrufusx65v

New Member
Messages
74
Reaction score
0
Points
0
okay, i got it to work...BUT, my button went missing now, so i made a new button, but how do i link it to the google search box?

I did read the previous links, and they don't use buttons, its just jquery and automatic after typing text into the search box...

And, how do i change the text color of the search box? i tried calling it via:

Code:
#query input {
      color:#FFF;
}

and surprisingly, it didn't work...

Here's my HTML form:

Code:
<form id="gcse" action="" method="post">
          <input type="text" id="query" onClick="if(this.value == 'Search SS Studios...') this.value='';" onBlur="if(this.value.length == 0) this.value='Search SS Studios...';" value="Search SS Studios..." />
          <input type="submit" value="" name="search" accesskey="2" id="search_btn" />
</form><!-- End gcse -->

& my javascript in my <head>

Code:
<script src="http://www.google.com/jsapi?key=*SECRET* " type="text/javascript"></script>
<script type="text/javascript">
	google.load('search', '1', {language : 'en'});
	google.setOnLoadCallback(function() {
	var drawOptions = new google.search.DrawOptions();
	drawOptions.setInput(document.getElementById('query'));
	var customSearchControl = new google.search.CustomSearchControl('008835135225647814369:bg7vtsjoucg');
	customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
	var options = new google.search.DrawOptions();
	options.setSearchFormRoot('cse-search-form');
	options.setAutoComplete(true);
	customSearchControl.draw('results', drawOptions);
	}, true);
</script>

Along side all of that nonsense, im trying to get something figured out with the results side. All i want is a basic javascript "if..else" statement saying:

"If someone searches something via the search box, hide away the content and reveal the results | Else keep the original content up there as if you didn't searched anything"

Now im not one who is well equipped in the knowledge of javascript, but here's what i have so far:

Code:
<script type="text/javascript">
	if(//if someone searches something through the search box, reveal...)
		<div id="results" style="width:100%;"></div>
	else(// the default content of the web page when first visited to...)
		<div id="XML" style="width:100%;"></div>
</script>
 
Last edited:
Top