CSS - Css-panel Change- Help Please!
Hello! I hope someone can help me!
Im trying to adapt a bigcartel css style sheet to make it a 4 row product column rather than 3. I just cant seem to get it correct when playing with the wrap, content and main content. The width seems to jump only from 3 to about 8! Im not actually hosting the theme myself to edit but just simply copied and pasted the css from a link provided straight into the basic design section in big cartel. It seems to be doing the trick but i cant get the spacing perfect to make it 4 columns wide!? Does anyone know if its because i need to actually host the template and images on my own server to be able to get it perfect? Any help to perfect this would be very much appreciated! Thanks so much in advance, Weesy Similar TutorialsHi im new to using css and iv come across a problem. Im trying to create a css tab panel and I came across a site which had a template ready to use! Iv modified the css and html slightly to suit the style of the site im designing, however the css tab panel renders incorrectly in IE Here is what iv managed to create: http://starrbuckk.googlepages.com/tab.html http://starrbuckk.googlepages.com/tabs.css Now I have no idea how to fix the problem for IE! As you can see its the 1 pixel just below the introduction tab. The problem is that the bottom border for the tab is white and it extends all the way to the edge. Im wondering if there is there anyway to get the left border to 'override' the bottom border so that it show up ontop on the bottom border? Thanks! Hi All. I am just trying to figure out how to make the bottom border of the active tab disappear so it looks like the active tab is part of the active panel. For example: http://wiki.modxcms.com/images/a/aa/Tabs3.png THE CSS Code: <style> #tabs { padding: 10px; } #tabs #nav { margin-bottom: 0px; margin-left: 8px; } #tabs ul { list-style: none; margin: 0px; padding: 0px; } #tabs #nav ul li { display: inline; padding: 3px 7px; cursor: default; background-color: #eeeeee; border: 1px solid #cccccc; border-bottom: none; margin-right: 2px; } #tabs #nav ul li.active { border: 1px solid #000066; border-bottom: 1px solid white; background-color: #ffffff; } #tabs #nav ul li:hover { background-color: #ffffff; } #tabs #data { margin-top: 3px; } #tabs #data div { display: none; border: 1px solid #000066; padding: 10px; } #tabs #data div.active { display: block; } </style> THE javascript: Code: <script type="text/javascript" language="javascript"> function navAllInactive() { oNav = document.getElementById('nav'); oLis = oNav.getElementsByTagName('LI'); for (i = 0; i < oLis.length; i++) { oLis[i].className = ''; } } function hideAllData() { oData = document.getElementById('data'); oDivs = oData.getElementsByTagName('DIV'); for (i = 0; i < oDivs.length; i++) { oDivs[i].style.display = 'none'; } } function doShow(o, pageId) { hideAllData(); navAllInactive(); o.className = 'active'; oData = document.getElementById(pageId); oData.style.display = 'block'; return false; } </script> THE HTML: Code: <div id="tabs"> <div id="nav"> <ul> <li onclick="javascript:doShow(this, 'relevance');" class="active">Relevance</li> <li onclick="javascript:doShow(this, 'added');">Date Added</li> <li onclick="javascript:doShow(this, 'recorded');">Date Recorded</li> <li onclick="javascript:doShow(this, 'rating');">Rating</li> </ul> </div> <div id="data"> <div id="relevance" class="active">Relevance</div> <div id="added">Date Added</div> <div id="recorded">Date Recorded</div> <div id="rating">Rating</div> </div> </div> Hey Everyone! I'm having issues with a custom sliding panel showing correctly in IE. It works EXACTLY as I'd like in Firefox, but breaks in Internet Explorer. I tried different positioning items, and tweaking everything I could think of, but it would appear that I'm stumped. knockoutsadvertising[dot]com/gaptest/ In the right hand sidebar, clicking 'Learn More' will open the panel. There's a link within the panel to close it again. Any help on how to get this thing positioned correctly in IE would be awesome. Brad This topic may have been covered before, but I have searched and can't find anything. I think it is a unique topic. My boyfriend and I have a php site, http://biggt.mybesthost.com, we are having trouble that only shows up in the administrator part. For example, when a topics post is made, the font is different like the comment.link _DATESTRING The chatters is different. Any help to solve this would be greatly appreciated. Thanks If you have a second..... Doing a design for my brother and I have this idea that seems so simple but I can't figure it out. I attached a image that explains it better than I could in an a post. Here is the site: anthemcompanies.com/index2.html Here is the image to explain it (can't insert an image so it is a link) anthemcompanies.com/screen.png I would like to use just CSS to accomplish it but I have no idea how. I have searched everywhere online. I have tried adapting some jquery scripts and some js stuff but nothing has worked for me. Advice, links, completely explained solution, or I have no idea, would be most appreciated. Ive got a couple navigation blocks on the left hand side of the page, now when i use: <form> <div> A couple menu links go here </div> </form> then in Mozilla no gap is displayed, yet in IE a gap at the top and bottom appear outside the div tags, as it is written in the code. if i place the form tags within the div tags then the gap is at the top and bottom of the menu links, (for IE). Yet for Mozilla only a gap appears below the links when the form tags are within the div tags. Is there any way to get rid of these gaps? you can check the site he http://wiganyac.hellrazer.net/ I have a button which is drawn using css background-image and it has a hover effect using css a:hover. I also need to have a click state for this button, so that each time the button is clicked it switches between two different states (4 states total). Is this possible? I'm assuming this will probably require JavaScript which I have little experience. Thanks in advance for any help! Hi all, I'm trying to change my cursor when I hover over a image on a onclick event as the example below but I can't get this to work. <a onmouseover="this.style.cursor='hand'"> Regards Stephen I have to do a re-design project to convert a Flash website into xhtml and css only. The reason for this is that some corporate companies have been unable to see the site at all because thier firewalls ban all Flash content. My problem is this; the site is very contempory in design and the previous designer used Flash to create his own custom scroll bars that fit nicely with the contempory theme, but doing the same thing using CSS is impossible. I know you can kind of customise scroll bars in IE and I also know that you shouldn't. The client wants the site re-design to resemble the Flash version as much as possible, and I don't want to faithfully re-create the site and then have these chunky out of place scroll bars in the middle of it. Should I just propose that the layout be changed to avoid the need for scroll bars? hi all, Code: <ul class="sessionlist"> <li class="session_event"> <label class="evinfo"> <b>available places: 1</b> </label> <br> <label class="evinfo"> <b>session capacity: 1</b> </label> </div> <br> <label class="evinfo">Click to select</label> </li> <li class="session_event current"> <label class="evinfo"> <b>available places: 1</b> </label> <br> <label class="evinfo"> <b>session capacity: 1</b> </label> </div> <br> <label class="evinfo">Click to select</label> </li> I have managed to get the color of the text in these labels by using: Code: ul.sessionlist li:hover .evinfo{ color: #662d91 !important; } My question is.. how do i change the color of the text for the labels in selected_session current? Its doing my head in and I can't figure it out... Probably really simple for you guru's though. Ben ps, i know the html for this is invalid.. I've chopped out a load of code to leave only the relevant stuff and have probably missed a few things. Question: I have two class below. What I want is when I change the padding-top property value in div.content-full, I also want the padding-top property value in the div.content change to the same value div.content-full { float:left; width:100%; padding-top:10px; margin:0px; } div.content { float:left; width:70%; padding-top:06px; margin:0px; } Can anybody help me out? I have been searching for days in the css files to find where to change the height of the div container for the breadcrumbs. I have changed everything I could find that I thought may be related to this issue. Some of the very bottom of letters like g get cut off in Chrome and IE7. I have been using firebug to help me with this issue but this one has me stumped. Any help finding the correct placer to increase the space at the bottom of the breadcrumbs would be greatly appreciated. If someone could contact me for the url it would be appreciated as the forum rules state new users can't post urls Thank you DeZiner http://testarea.sensationdesigns.com/triexa/ The dropdown menu... at the top... Okay so three main questions: 1) At 800x600, the last item shows up off the screen. Is there anyway to have it automatically not show off the screen? 2) Is it bottom to have the bounding boxes of each of the subitems be aligned to the right edge of the text rather than the left? 3) Is it possible to have the whole row clickable, rather than just the text? I have the task of creating a question with multiple correct answers without using form checkboxes (for reasons I won't go into here.) I've made a simple question that works by replacing the src of a tickbox image with a ticked one when that answer is selected. It works in IE5.5 and Firefox but in IE6 the images show when the page loads, then disappear on clicking and don't come back. Can anyone suggest why? I've stripped out all the branding etc and put the basic page at http://www.normanlamont.com/test/mu...pages/index.htm Here's the code that does it: Code: function markup(which) { // toggle tickbox on and off until submit if (document.getElementById('c' + which).className=="chosen") { document.getElementById('tick' + which).src="../q_images/tickbox_0.gif"; document.getElementById('c' + which).className="not_chosen"; selected[which-1]=0; } else { document.getElementById('c' + which).className="chosen"; document.getElementById('tick' + which).src="../q_images/tickbox_1.gif"; selected[which-1]=1; } } the code here works fine, except that the displayed text changes from white to black. It would be nice if each new text would start as FFFFCC and then fade to 3E3D11. Here is the script that I'm manipulating from Java Script Source: <!-- Paste this code into the CSS section of your HTML document --> #tic { /* enter any styles for the ticker below */ border: .05em #CEC3AD solid; font-size:0.85em; padding:10px; width:400px; line-height:20px; } #tic * { /* this will hide all children tags */ font-size: 1em; margin:0px; padding:0px; display:none; } #tic a { /* add more tags to this list if you wish to display them inside the children */ display:inline; } <!-- Paste this code into an external JavaScript file --> /* This script and many more are available free online at The JavaScript Source :: http://javascript.internet.com Created by: James Crooke :: http://www.cj-design.com */ var list; // global list variable cache var tickerObj; // global tickerObj cache var hex = 255; function fadeText(divId) { if(tickerObj) { if(hex>0) { hex-=5; // increase color darkness tickerObj.style.color="rgb("+hex+","+hex+","+hex+")"; setTimeout("fadeText('" + divId + "')", fadeSpeed); } else hex=255; //reset hex value } } function initialiseList(divId) { tickerObj = document.getElementById(divId); if(!tickerObj) reportError("Could not find a div element with id \"" + divId + "\""); list = tickerObj.childNodes; if(list.length <= 0) reportError("The div element \"" + divId + "\" does not have any children"); for (var i=0; i<list.length; i++) { var node = list[i]; if (node.nodeType == 3 && !/\S/.test(node.nodeValue)) tickerObj.removeChild(node); } run(divId, 0); } function run(divId, count) { fadeText(divId); list[count].style.display = "block"; if(count > 0) list[count-1].style.display = "none"; else list[list.length-1].style.display = "none"; count++; if(count == list.length) count = 0; window.setTimeout("run('" + divId + "', " + count+ ")", interval*1000); } function reportError(error) { alert("The script could not run because you have errors:\n\n" + error); return false; } var interval = 7; // interval in seconds var fadeSpeed = 40; // fade speed, the lower the speed the faster the fade. 40 is normal. <!-- Paste this code into the HEAD section of your HTML document Change the file name and path to match the one you created --> <script type="text/javascript" src="yourFileName.js"></script> <!-- Paste this code into the BODY section of your HTML document --> <div id="tic"> <h1>Welcome to The JavaScript Source ...</h1> <p> The JavaScript Source is a part of Jupitermedia, in the Web Developer channel of the internet.com network.</p> <p> All the scripts on this site are free for personal or business use.</p> <p> The only requirement is that you leave the credit information inside the script.</p> <h2>JavaScripts</h2> <p> JavaScript programs are contained within the HTML code of the Web page and are interpreted by the browser as it's read.</p> <p> JavaScript provides greater flexibility through such luxuries as being able to create windows, display moving text, sound or other multimedia elements with relative ease.</p> <h2>Some Basics</h2> <p> JavaScript is not Java; it is an object-based scripting language; and it is cross-platform. </p> </div> <script type="text/javascript"> <!-- initialiseList("tic"); //--> </script> <p><div align="center"> <font face="arial, helvetica" size"-2">Free JavaScripts provided<br> by <a href="http://javascriptsource.com">The JavaScript Source</a></font> </div> I have a form with a list of things. The number of things in the list is variable, depending on certain factor, different things, different numbers of things. Next to each thing is a radio button. There is a question with two radio buttons, "yes" and "no". When "no" is selected, I want the radio buttons to be disabled, and the color of the text to change to gray. For the radio buttons, I have a simple JS function: javascript Code: Original - javascript Code function enableCFFID() { document.cartform.cffid.disabled=false; } function disableCFFID() { document.cartform.cffid.disabled=true; }
For the test that goes with each thing, obviously I don't want to have to assign unique ID (perhaps in a span tag that encloses the text). I would want a common name for all of them. But this would mean I can't use getElementById. What other method can I use to change the class for a group of span tags who's number is variable? I'm trying to change text-color of a <h1> tag when the mouse hovers over it. I don't want to use the :hover css comand because I need this page to work in IE5. So I was thinking of using JavaScript and onMouseOver, but then I don't know how to change the color. Maybe if I somehow could change the style-sheet that the h1 uses, but I don't know how I would do that... So how do I change the color of a <h1> tag using onMouseOver? Hi Guys, I have a question about me not understanding how margins work... I am quite perplexed...I am trying to remove the white space between borders of table cells. I am using: Code: td { margin: 0; } But there is still white space between the cells...how do I make no space between the cells? Code is located he http://www.taipeitripper.com/senshin_center/training_schedule.html Thank you, Evan Jerkunica to dynamically have a menu to change whats css sheet is loaded on page view |