css

Is it advisable to use CSS frameworks?

I'm an average web developer. Just want to find out if it's advisable to use CSS frameworks such as the 960 framework. if anyone has, what are the pros and cons of using it. thanks. ...

Displaying array data in horizontal manner using php and smarty

Suggest me a better way to do it. I would like to show the array result in the horizontal manner. Column1 | Column 2 | Column 3 3 | 7 | 10 now it shows in vertical manner as follows Column1 | Column 2 | Column 3 3 7 10 Array Result : Stored in $result variable and assigned in ...

An Iframe, in an anchor tag. Yeah, I know. A problem with IE rendering.

This all started when I wanted a way to hide some content unless requested. I had already used the link:hover method for some tooltips, and wanted to take a crack at adapting it for this purpose. I'm avoiding the use of JS, because the nature of my site lends itself to use on cellphones--and even where JS is supported, it's loading is n...

CSS background-color has no effect on a DIV

Hello, <div style="background-color:black" onmouseover="this.bgColor='white'"> <div style="float:left">hello</div> <div style="float:right">world</div> </div> Why does the background color not show as black? I cannot set the width and float, is it possible without them? Thank you for your time. ...

How can I modify HTML Canvas colors using an interval loop?

i wrote this and wanna start and end the loop with certain colors (e.g. start with rgb 150,150,200; end with rgb 190, 160, 200): <!DOCTYPE HTML> <html> <head> </head> <body> <canvas width="400" height="100"></canvas> <script> var context = document.getElementsByTagName('canvas')[0].getContext('2d'); var lastX = contex...

How to do a Chrome/Opera specific stylesheet ?

I need to do chrome/opera hacks because of a font replacement script wanted by the client that breaks things... this is sad but everything is working in IE6-7, FF2-3 and Safari. I have no way of fixing the script itself, I can only hack around it using CSS and HTML. I'm trying to do something in the lines of : <!--[if IE 6]> <link r...

Which CSS framework(s) work well with SharePoint publishing sites?

Past, now irrelevant back story: I was trying to make some changes to BlueBand and get 'up and running pretty quickly' but after looking at it further this is no longer an option due to tables that a previous developer introduced into the layout. I'll have to live with this and make what tweaks I can. So, looking towards future greenfie...

Is there a way to check what fonts are installed on machines via the web?

Is there a way to test what fonts are installed or maybe a way I can read out all of them? I want to do a survey in our product to see what fonts I can use on our projects. ...

CSS width problem child parent

Hi... I have a div C inside div B inside div A. Div A has width set to 700px, and div C has width set to 100px. Div B doesn't have the width set. My problem is that div B extends his width to 100% (to conform div A's width). Is there a way for div B, that is, his width to conform to children divs? I want it to be wrapped around div C,...

Insert image after each list item

Hi.. What would be the best way to insert a small image after each list element? I tried it with a pseudo class but something is not right... ul li a:after {display: block; width: 3px; height: 5px; background: url ('../images/small_triangle.png') transparent no-repeat;} Thanks for any help! ...

Do I need some kind of IE 6 hack for my page layout?

My site roofcommunityservices.org I am being told has some div shifting issues in IE6. We do not have IE6 here at the office, but I do use the Firefox render tool to view a screenshot si I get the general idea. I am on a Mac and can't see the same issues as my client. Could someone take a look at the site in IE6 PC and tell me what they...

How to ignore parent css style

I'm wondering how to ignore a parent style and use the default style (none). I'll show my specific case as an example but I'm pretty sure this is a general question. <style> #elementId select { height:1em; } </style> <div id="elementId"> <select name="funTimes" style="" size="5"> <option value="test1">fish</option> ...

div background color cuts off

Here is a screen shot of the what it looks like in IE6, works fine in everything else: http://i39.tinypic.com/2lcr4uw.png It is within div class="article odd", which has overflow:auto; set. Then it has a ul list (w/ clear:both; set), float to the left, w/ the li's split by 50% Any suggestions would be appreciated. ...

Custom simple Python HTTP server not serving css files.

Hello, I had found written in python, a very simple http server, it's do_get method looks like this: def do_GET(self): try: self.send_response(200) self.send_header('Content-type', 'text/html') self.end_headers(); filepath = self.path print filepath, USTAW['rootwww'] ...

CSS/Jquery to show hide submenu

Hello, still trying to figure out jQuery and I need some help with a sidebar list. I am editing this after trying some stuff. I am trying to have the submenu hidden until a specific list item is moused over, then another menu appears to the side of the sidebar and you are able to mouse over those selections. I am halfway there but wh...

is it true that HTML still has a role in page layout?

I think the ideal is to use CSS purely for the layout and presentation, and HTML for the content. But let's say, the company wants to change a "Related articles" box from the bottom of the page to the top of the page. In such case, won't using CSS alone be not an ideal solution, but is better to alter the HTML as well? So as things ar...

Unwanted spacing below images in XHTML 1.0 Strict

Hey all- My goal is to use the XHTML 1.0 Strict DOCTYPE for this page I'm working on, but I'm running into some weird design issues.. I have the below code: <div><img src="photos/someimage.jpg" alt="Title" /></div> When I load the page with DOCTYPE set to 1.0 Strict, a little gap of spacing is added below the image, within the div. ...

How can I show a hyperlinked image with two different size/color borders around it?

I'm trying to figure out the css to display an image with a 1px black border then a 9px white border around that. Is there an easy way to do this? The div around image answer almost works, but I still have big gaps on either side of my image (outside of the 1px border and inside of the 9px border). It seems like the div tag is stretchin...

Z-Index not working in IE7

I had created dialogue box at the time of Delete button click.It is overlaying parent Div. Its working in all browsers except IE 7.Here I mentioned Css for dialog box and div. dialog_box { width:219px; height:100px; background-image:url(../images/preference/popup.png); background-repeat:no-repeat; padding:10px; position:absolute; righ...

how to get pop up with two different color??

Hi to all, On this link boxover.swazz.org/ we see the box over with heading and content. I need to do the same thing but with rounded corners. Can anyone suggest me? Thanks in advance........ ...