All Discussions - CSS-Tricks Forums http://css-tricks.com/forums/discussions/feed.rss Tue, 01 Nov 11 17:22:56 -0400 All Discussions - CSS-Tricks Forums en-CA CSS positioning http://css-tricks.com/forums/discussion/14385/css-positioning Tue, 01 Nov 2011 16:59:15 -0400 margaux 14385@/forums/discussions
html
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">

<title>Weaving Wonderful Websites</title>

<link href="css/emptyIndexPort.css" rel="stylesheet" type="text/css"/>
<link href="css/portfolio-slider.css" rel="stylesheet" type="text/css"/>
</head>

<body>
<div id="siteWrapper"><p>Site Wrapper</p>
<div id="headerWrap"><p>Header Wrap</p>
<div id="logo"><p>logo</p>
</div>

<div id="navWrap"><p>Nav Wrap</p>
<ul id="nav"> Nav List
<li><a href="about.html">about</a></li>
<li><a href="portfolio.html">portfolio</a></li>
<li><a href="technical.html">contact</a></li>
</ul>
</div><!-- end navWrap div -->
</div><!-- end headerWrap div -->


<div id="portfolioWrap">
<div class="anythingSlider">

<div class="wrapper">

</div><!-- end wrapper div -->
</div><!-- end anythingSlider div -->

</div><!-- end portfolioWrap div -->

<div id="footer">
<ul>
<li><a href="#">copyright</a></li>
<li><a href="#">site by</a></li>
<li><a href="#">contact</a></li>
</ul>
</div> <!-- end footer div -->

</div> <!-- end siteWrapper div -->
</body>
</html>


css
*/

* { margin: 0; padding: 0; }

p {font-size:36px;}

body {
font-family: sans-serif;
color:#B26FA7;
}


a, a img { border: 0; text-decoration: none; }

#siteWrapper {
/* background:url(images/bar.jpg) repeat-x;*/
padding:30px 0 0 20px;
min-width:1000px;
border: 2px solid black;
}


/* ---------------------- header ----------------------- */
#headerWrap {
width:1000px;
padding-bottom:80px;
border: 1px solid black;
}

#logo {
width: 600px;
height: 182px;
border: 1px solid black;
}

/* ---------------------- navigation ----------------------- */

#navWrap {
position:relative;
float:right;
margin:35px 0 0 20px;
border: 2px solid red;
width:350px;
height:200px;
}

#nav {
text-decoration: none;
list-style: none;
border: 2px solid green;
}

#nav li {
display:inline;
font-size:20px;
margin-left:15px;
border: 1px solid black;
}

#nav li a, #emailLink a {
color:#f4847f;
text-decoration:none;
}

#nav li a:hover, #nav li a:active, #emailLink a:hover, #emailLink a:active {
color:#ccc;
font-style:italic;
}

/* ---------------------- portfolio content ----------------------- */

#portfolioWrap {
border: 2px solid purple;
float:left;
width:680px;
color:#F66;
font-size:14px;
padding:50px 0px 0px 20px;
margin-left:4px;
}



/* ------------------------------- footer -------------------------- */


#footer {
border: 2px solid blue;
width:900px;
color:#F66;
margin-top:400px;
clear:both;
}

#footer ul {
float:right;
list-style: none;
width:400px;
}

#footer li {
display:inline;
font-size:16px;
padding-right:34px;
text-align:left;
text-decoration:none;
}

#footer ul a {
text-decoration:none;
}
]]>
Uploaded date http://css-tricks.com/forums/discussion/14356/uploaded-date Sun, 30 Oct 2011 17:24:51 -0400 JeyPey 14356@/forums/discussions http://css-tricks.com/snippets/php/display-styled-directory-contents/
to show my files. Is there a way the replace "type" with "date". So it show you the date when the file appeared/uploaded in this folder?]]>
Menu semantics question http://css-tricks.com/forums/discussion/14380/menu-semantics-question Tue, 01 Nov 2011 12:31:22 -0400 hero 14380@/forums/discussions For the life of me I can't find this slider/fader. Help? http://css-tricks.com/forums/discussion/14382/for-the-life-of-me-i-cant-find-this-sliderfader.-helps Tue, 01 Nov 2011 13:51:57 -0400 noahgelman 14382@/forums/discussions
Anyone have any idea of a slider/fader like that?]]>
Need help with understanding placehold.it http://css-tricks.com/forums/discussion/14384/need-help-with-understanding-placehold.it Tue, 01 Nov 2011 15:23:01 -0400 chanman 14384@/forums/discussions placehold.it can somebody help me with it.]]> IE9 Cufon? http://css-tricks.com/forums/discussion/14262/ie9-cufons Mon, 24 Oct 2011 17:26:56 -0400 allenc 14262@/forums/discussions <!--[if gte IE 9]> <script type="text/javascript"> Cufon.set('engine', 'canvas'); </script> <![endif]--> but it doesnt seem to have any effect.

Thanks for any help. ]]>
TypeKit vs Google Web Fonts http://css-tricks.com/forums/discussion/10949/typekit-vs-google-web-fonts Thu, 24 Feb 2011 09:24:29 -0500 gno 10949@/forums/discussions
I have been looking at both TypeKit and Google Web Fonts API recently. I must say that I like the google one a lot more. And it even seems to be free.

I would be glad if some of you could shed some light upon this - give a few pros and cons for each service.

The only thing I like more about typekit is the size of their font archive. :-)]]>
how to build a slide down page content? http://css-tricks.com/forums/discussion/14370/how-to-build-a-slide-down-page-contents Mon, 31 Oct 2011 20:01:08 -0400 bhuten 14370@/forums/discussions http://css-tricks.com/snippets/]]> UI Framework/Technology which supports all the borwsers evenly http://css-tricks.com/forums/discussion/14373/ui-frameworktechnology-which-supports-all-the-borwsers-evenly Tue, 01 Nov 2011 02:20:29 -0400 Maverick 14373@/forums/discussions
I have a working website which is pretty ok with most of the browser-OS combination's, but some issues related to alignment of buttons and other things keep on pop up for Browser modes and Documents Modes for Latest IE versions(8+). Some times i get problems with MAC+SAFARI too.

Is there any such framework or technology which will help to get similar look alike responses from all the browser OS combination's?

]]>
using localStorage to store css http://css-tricks.com/forums/discussion/14381/using-localstorage-to-store-css Tue, 01 Nov 2011 12:38:45 -0400 fishnfrogs 14381@/forums/discussions text and centered images not scaling down help please http://css-tricks.com/forums/discussion/14383/text-and-centered-images-not-scaling-down-help-please Tue, 01 Nov 2011 14:03:06 -0400 gearhead 14383@/forums/discussions
The column on the right does the same. Even after some experimentation reduced the images size, centered them in the column and...tadaaaa they resize!

Well the text and images below the container's-100%-width image remain the same size, as well the header (also an image) with images within the same for the footer, no rescaling.

Help please!!

Thanks to anyone, your help will be appreciated.]]>
Corporate site redesign http://css-tricks.com/forums/discussion/14375/corporate-site-redesign Tue, 01 Nov 2011 04:02:36 -0400 Burminsky 14375@/forums/discussions
We have just changed the design and logo of our corporate website - pdgroup.co. On the front page we embedded a picture of our office room and in the center you can see a red button. If you press on it - the room changes a little some new things appear (jacuzzi, mirror ball and poster). What do you think of that? It looks funny, but we don't want visitors to think that we have fun instead of doing our work. Should we keep it there, or it is better to remove it? And what do you think of the whole design and navigation of the site?

Thanks for your help in advance.
]]>
mobile-first approach http://css-tricks.com/forums/discussion/14379/mobile-first-approach Tue, 01 Nov 2011 09:10:29 -0400 cssnew 14379@/forums/discussions What's the difference from the designing for desktop down to mobile using media queries, isn't it just the same?
]]>
@media print http://css-tricks.com/forums/discussion/14378/media-print Tue, 01 Nov 2011 08:36:42 -0400 krysak4ever 14378@/forums/discussions MEDIA QUERIES

I use single .css file in which I have apart all web styling at the very bottom also


@media print {
/* print styles in here */
}


I know media queries as for adaptive / responsive webs
but is this also MQ so I have to use modernizer or such in order to print in older browsers ?]]>
Bootstrap + LESS http://css-tricks.com/forums/discussion/14360/bootstrap-less Mon, 31 Oct 2011 04:38:36 -0400 krysak4ever 14360@/forums/discussions
I worked with 960.gs http://grids.heroku.com/
looks so messy compared to http://twitter.github.com/bootstrap/

bootstrap is using LESS
http://lesscss.org/#-client-side-usage

to generate its CSS in the first place

in bootstrap there are .less files

scaffolding.less
// GRID SYSTEM
// -----------
// To customize the grid system, bring up the variables.less file and change the column count, size, and gutter there



variables.less
// Griditude
// Modify the grid styles in mixins.less
@gridColumns: 16;
@gridColumnWidth: 40px;
@gridGutterWidth: 20px;
@extraSpace: (@gridGutterWidth * 2); // For our grid calculations
@siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));



ok so far understand it
need it change it as follows
@gridColumns: 20;
@gridColumnWidth: 30px;
@gridGutterWidth: 20px;


but how can I "render it / convert it" into normal .CSS using the less.js file ?
http://lesscss.org/#-client-side-usage]]>
IE and Firefox Issues with Vertical Navigation Bar http://css-tricks.com/forums/discussion/14369/ie-and-firefox-issues-with-vertical-navigation-bar Mon, 31 Oct 2011 18:22:47 -0400 jonbooster 14369@/forums/discussions
I just created metallicatshirts.com and I am having trouble with the left hand vertical navigation menu in Internet Explorer and Firefox. After each link is clicked while using IE and Firefox, the list element shifts to the right and the navigation bar does not look consistent. This does not happen when I use Chrome and Safari and I get what I want. From doing some research on-line, I believe it may be the a:visited CSS rule in my CSS file that is causing the problem but I am not sure. I am not sure how to adjust this CSS code to accommodate IE and Firefox. Below is my CSS rules for the navigation bar. Any suggestions are much appreciated.

Thanks.

.ulNavBarVertical {
/* position:relative; */
padding:0;
margin:0;
width:0;

}
.ulNavBarVertical li {
list-style-type:none;
margin:0 0 0.25em 0;

}
.ulNavBarVertical a, .ulNavBarVertical a:visited {
position:relative;
display:block;
width:143px;
/*border:1px solid #333333;*/
font-family:Verdana, Helvetica, Arial, sans-serif;
font-size:11px;
text-align:left;
text-decoration:none;
/*background:#107AC0; */
color:#333333; /* ADDED */
padding-top: 0.25em;
padding-left: 5px;
padding-bottom: 0.25em;

/*padding:5px; */
}

.ulNavBarVertical a:hover {
color:#107AC0;
background-color: #FFFFFF;
background-image: none;

}
.ulNavBarVertical a span {
display:none;

}
.ulNavBarVertical a:hover span {
display:block;
position:absolute;
left:70px;
top:0;
text-align:left;
padding:0.5em;
width:24em;
background-color:#FFFFFF;
color:#333333;
border:1px solid #107AC0;


}
.ulNavBarVertical img {
border:1px solid #000;
float:left;
margin:0.25em 1em 0.5em 0;

}
.ulNavBarVertical a:hover span:first-line {
font-weight:bold;
font-size:1.2em;
color:#107AC0;

}]]>
Ajax Load on iPad http://css-tricks.com/forums/discussion/14367/ajax-load-on-ipad Mon, 31 Oct 2011 16:57:29 -0400 benjamin777 14367@/forums/discussions
http://css-tricks.com/8392-ajax-load-container-contents/

I was getting great results until I crossed checked some things on an iPad. My page won't load the Ajax content. Even the demo Ajax content won't load. However, it DOES work on an iphone. Is there something I can look into? Are there ground rules with Ajax/Jquery for the iPad that I need to apply?

Any and all advice and tips are appreciated. Thank you so much. ]]>
W3.org vs. HTML5 http://css-tricks.com/forums/discussion/14377/w3.org-vs.-html5 Tue, 01 Nov 2011 05:51:35 -0400 krysak4ever 14377@/forums/discussions YOU CAN DROP the type part for your style + script

http://www.w3.org/TR/html4/present/styles.html
while specs says

14.2.3 Header style information: the STYLE element
type %ContentType;  #REQUIRED -- content type of style language --

]]>
Dynamic pages build-up using PHP includes http://css-tricks.com/forums/discussion/14376/dynamic-pages-build-up-using-php-includes Tue, 01 Nov 2011 04:23:19 -0400 Opariti 14376@/forums/discussions I want to dynamically build web pages as per the user's posted requests, driven by a menu.
The pages are built from three parts:
- a header.php file containing the
<head>
section, referencing the css and JS files, plus a chunk of the
<body>
loading some png common files (banners). The info is static here.
- a footer.php file containing a
<div id="footer">
section, the usual information about a page. The info is static here as well.
- a set of 'content' pages (part of the
<body>
section) that are dynamically loaded as per the user's request, sent to an index.php file which aggregates all three parts (I use this file as a controller). Ex: if the user asks of a 'list' action, I send 'index.php/?request=list', which loads (it really does, except for the rendering and JavaScript event handlers) the list.php content page, if it asks for a 'user' action, I send 'index.php/?request=user', which loads the user.php content page etc.
The problem I have is that it works fine when I load/build the first page, but for all subsequent requests the
<head>
references (css and js files) are not recognized by the elements of the loaded 'content' page; and my new built page doesn't have the styling and the event handlers activated. When I trace the URI I see that the JavaScript, the css files and the png static files are part of separate requests to the index.php controller. Therefore I'm missing something here about the .htaccess file configuration (perhaps something else?). Ironically, I regularly use that in Zend, but it seems that the framework kept me away from understanding the use of the index.php controller.
Thanks for help! ]]>
Absolute positioning inside table, firfox vs IE http://css-tricks.com/forums/discussion/14372/absolute-positioning-inside-table-firfox-vs-ie Tue, 01 Nov 2011 01:36:12 -0400 writetonsharma 14372@/forums/discussions
I have a html, the problematic part is below. There is a table with two rows and three columns. There is another table inside the second row and second column. The tables are positioned absolutely. The problem is, when I give absolute position, the outer table is positioned respective to the page but the inner table is rendered differently by different browser's.

Firefox takes it respective to the page and IE, I think is taking it relative to the table cell and so the inner table goes out. So it's no more a table inside a table. I don't know which browser is doing it correctly but I want it the firefox way.

below is the respective part of the code.

<!DOCTYPE document PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<document xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="Page51912" style="position:relative;height:1056px;width:816px;">
<table class="normal" cellspacing="0.00px" style="border-collapse:collapse;border-top:1.00px solid #FF00FF;border-bottom:1.00px solid #FF00FF;border-left:1.00px solid #008000;border-right:1.00px solid #008000;;position:absolute;top:113.00px;left:119.00px;">
<tr>
<td height="54.000" width="145.000" style=";;" >
</td>
<td height="54.000" width="145.000" style=";border-left:1.00px solid #000000;;" >
</td>
<td height="54.000" width="145.000" style=";border-left:1.00px solid #000000;;" >
</td>
</tr>
<tr>
<td height="54.000" width="145.000" style=";border-top:1.00px solid #000000;;" >
</td>
<td height="54.000" width="145.000" style=";border-top:1.00px solid #000000;border-left:1.00px solid #000000;;" >
<table class="normal" cellspacing="0.00px" style="border-collapse:collapse;border-top:1.00px solid #800080;border-bottom:1.00px solid #00CCFF;border-left:1.00px solid #FF0000;border-right:1.00px solid #808000;;position:absolute;top:174.00px;left:274.00px;">
<tr>
<td height="47.000" width="126.000" style=";;" >
</td>
</tr>
</table><br style="clear:left;"/>
</td>
<td height="47.000" width="126.000" style=";border-top:1.00px solid #000000;border-left:1.00px solid #000000;;" >
</td>
</tr>
</table><br style="clear:left;"/>
</div>
</body>
</html>


The problem is solved if I draw the tables independently but which I dont want.

Any thoughts would be very much helpful.


Thanks,
Naveen.
]]>
CSS grid / columns ? http://css-tricks.com/forums/discussion/14363/css-grid-columns-s Mon, 31 Oct 2011 09:14:50 -0400 krysak4ever 14363@/forums/discussions
sry for not uploading 100% size http://minus.com/l4htRSOetiFmf
will do so in evening

this one is a bit zoomed in

I would like to hear some suggestions because I am not so sure
how many columns would you use in this design?

I received the file with 20 columns overlay layer picture in PhotoShop
kinda having problem to find such a grid, well I know 12, 16, 24 column grids

could anyone help me out here please?]]>
my first HTLM5 website http://css-tricks.com/forums/discussion/14275/my-first-htlm5-website Tue, 25 Oct 2011 11:32:45 -0400 Morten 14275@/forums/discussions This is my first HTML5 website and I´m not sure how to do it right.
Link: http://www.lille-web.dk

Is the html structure right ?

Strange things happens in IE8 % IE7 .... but thats what I expected :-) ]]>
100% height not working http://css-tricks.com/forums/discussion/14299/100-height-not-working Wed, 26 Oct 2011 22:56:25 -0400 Jeager 14299@/forums/discussions $(document).ready(function () {
$("#content").height($(document).height());
});


Using that bit of code to try to achieve my 100% height to my #content. However, its not working... Any ideas?

http://people.ysu.edu/~jtpenezich/tfts/

I solved my other javascript problems (don't know how) but the smooth scroll is working correctly now, and I made it so my #page is always the length of the logo. However i'd like to try and get my #content to always fill up the screen.
]]>
wp_list_categories with category description http://css-tricks.com/forums/discussion/14371/wp_list_categories-with-category-description Mon, 31 Oct 2011 21:41:43 -0400 dtrick 14371@/forums/discussions
I'm working on displaying the first level child categories of a parent category in WordPress & also include the category description.

My code looks as follows, but I'm stuck searching for a solution to include the description:

<?php wp_list_categories('child_of=1&style=list&depth=1&title_li='); ?>

This outputs each category in an li. It would be great to find a way to echo the description for each category below the li in a p tag.

I appreciate any suggestions.]]>
simple css ie7 help http://css-tricks.com/forums/discussion/14361/simple-css-ie7-help Mon, 31 Oct 2011 06:19:51 -0400 sly 14361@/forums/discussions
can anyone help with why my background image is not centred in ie7?

http://cstltd.com/agripower/

The page is almost non existent in ie6 - not so worried about that, but it may be a clue.

Thanks,

Sly.]]>
copy mergerd in photoshop cs5 http://css-tricks.com/forums/discussion/14353/copy-mergerd-in-photoshop-cs5 Sun, 30 Oct 2011 12:15:07 -0400 ahmed18 14353@/forums/discussions
I have problem in Photoshop CS5 , I can't use copy merged with transparent background
in cs3 i can use this option with transparent , now i can't

plz anyone help me !
]]>
data attributes and compatibility http://css-tricks.com/forums/discussion/14368/data-attributes-and-compatibility Mon, 31 Oct 2011 17:10:28 -0400 hero 14368@/forums/discussions
*[data-role="toolbar"]
{
/* Rules */
}]]>
Div box problem http://css-tricks.com/forums/discussion/14364/div-box-problem Mon, 31 Oct 2011 10:32:57 -0400 djpic 14364@/forums/discussions
I want it to look like this:
Correct Layout

But instead, it displays like this:
How it appears

Here is the HTML code:
<div id="Content">
<div id="holidays">
<h3>Upcoming City Holidays</h3>
<p><span>Christmas</span><br />Sunday, Decemeber 25th</p>
<p><span>Thanksgiving</span><br />Wednesday, Decemeber 25th</p>
</div>
<div id="announcements">
<h3>Annoucements</h3>
<div>
<h4>New City Policy<br /><span>By: John Doe</span></h4>
<h4>New City Policy<br /><span>By: John Doe</span></h4>
<h4>New City Policy<br /><span>By: John Doe</span></h4>
<h4>New City Policy<br /><span>By: John Doe</span></h4>
<h4>New City Policy<br /><span>By: John Doe</span></h4>
</div>
</div>
</div>


This is the Style Sheet:

#holidays, #announcements {
float: left;
width: 200px;
border: 1px solid #000;
padding: 0px;
text-align: center;
margin-right: 5px;
height: 150px;
overflow: hidden;
}
#holidays h3, #announcements h3 {
background-color: #006;
display: block;
color: #FFF;
text-align: center;
padding-top: 2px;
padding-bottom: 2px;
font-size: 14px;
margin-bottom: 20px;
}
#announcements {
margin-right: 0px;
text-align: left;
width: 471px;
}
#announcements div {
overflow: scroll;
overflow-style: marquee-line;
height: 100%;
}
#announcements h3 {
margin-bottom: 0px;
}
#announcements h4 {
margin-top: 10px;
margin-bottom: 10px;
margin-left: 10px;
font-size: 14px;
}
#announcements span {
font-style: italic;
font-weight: normal;
font-size: 12px;
}
#holidays p {
padding: 0px;
font-size: 12px;
margin-top: 0px;
font-style: italic;
}
#holidays span {
font-weight: bold;
font-style: normal;
}
#Content {
width: 680px;
padding-left: 60px;
padding-right: 60px;
padding-bottom: 5px;
padding-top: 0px;
background-image: url(../../layout/content_background.jpg);
clear: both;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
}

]]>
css horizontal menu help with overlap http://css-tricks.com/forums/discussion/14365/css-horizontal-menu-help-with-overlap Mon, 31 Oct 2011 13:03:28 -0400 rosebean 14365@/forums/discussions http://www.lyndabaxter.com/gr/home4.html . The sub-menu works fine when I DON'T push it down to overlap the large rotating image below. But when I push the menu down with a margin-top then I am not able to rollover/click on the sub-menu. The sub-menu disappears before I get a chance. Any ideas how I might solve this? I 've tried using z-index but it didn't seem to work unless I was using it incorrectly??

Thanks for any help :)]]>
jquery captions http://css-tricks.com/forums/discussion/14366/jquery-captions Mon, 31 Oct 2011 13:43:35 -0400 westside 14366@/forums/discussions
I am looking for a solution to a problem applying a query caption and fade to a link. I have circular links and would like to apply a caption slide similar to this: http://www.tympanus.net/jCapSlide/ or this: http://www.queness.com/post/1854/the-easiest-javascript-sliding-door-effect-tutorial-with-jquery ,also I am looking for the original image (black and white) to fade to the colour version at the same time as the caption slide.

I am using .png images however the above modules don't constrain to the shape, is there a way to use something along the lines of overflow: hidden instead of creating a frame round the object or another plugin that you might know of?

Many thanks]]>