Posts tagged as ' XHTML/CSS ' ...

06 Mar 2010 @ 8:08 PM 

Okay so this is very strange. I have a an absolute positioned image and on top of it is a PNG gradiant.

Based on the normal thought and previous post, if i set the absolute – positioned image z-index to -1 and make the layer with the png gradiant set a position: relative then it will happen what it was supposed to happen, the gradiant will cover the image. But what if we have this. see the 2 attached examples

The left image is having this CSS:

 img { z-index: -1; position: absolute;}
container { z-index: 1; position: absolute; background-image: gradiant; border-bottom: 2px solid grey;}

While the right image is having the same but with z-index: 1. If we remove z-index from the image @ all, then it wont show because of the underlying layer (remove the property). But if you look closely, the image is something on WHITE background so even with absolute positioning the only thing i can think off that makes it look like it “Multiplied” like in Photoshop is browsers ability to calculate png transparency and fill-options.

Of maybe i’m just silly and i am missing something very important but so far, and i cant find enough time to test this in a controlled environment, but so far this stuff works and i am quite happy with this situation :)

Later Edit: I’m silly, it was a number of factors, Gradiant transparency still works but only that. So Basically what you read in the last post… damn and i got excited about this :( oh boy.

Posted By: Dinulescu Alexandru Adrian

Last Edit: 06 Mar 2010 @ 08:23 PM

EmailPermalinkComments (0)

01 Mar 2010 @ 2:07 PM 

Evening All

How many times it happend that you got a design to cut/slice from a designer only (or you yourself are a designer) only to find out that the background of the PSD is unequal on both sides, for example you have a curbed line in the middle, and on the left the repeating line is placed on top while on the right side it goes in the middle. Something like this:

Uneven repeating backgrounds ilustrated

Notice the marked areas, well i found a pretty awesome and easy to implement solution. You slice the marked images and you do the following. When you have your main page container, as it’s siblings you create 2 new divs, bgHelperLeft and bgHelperRight and you style them something like this

 .bgHelperLeft  { position: absolute; z-index: -1; width: 50%; top: 0px (or where your background is); left: 0px; background-image: .. background-repeat: repeat-x; background-position: top left;}
 .bgHelperRight { position: absolute; z-index: -1; width: 50%; top: 0px (or where your background is); right: 0px;  background-image: .. background-repeat: repeat-x; background-position: top left; }

Since you used z-index: -1; then it means that it wont overlap any of your center images, absolute positioning means that it will stay there, and those widths means that they will meet BEHIND your center area so the user wont see the binning point, all creating a cursive flow from one side of the screen to the other side of the screen.

It works on all major browsers so this is a good trick to know and have in the book.

Questions in comments

Posted By: Dinulescu Alexandru Adrian

Last Edit: 01 Mar 2010 @ 02:11 PM

EmailPermalinkComments (0)

09 Jan 2010 @ 7:21 PM 

Hello

After a week of work, I finished the modifications to the this theme, based on the Inanis Theme MOD. This theme is used on both my blogs and so far it works good. I havent encountered any issues so i decided to release the files. Compared to V1.3 which can be found here, this version has a shitload of improvements such as: (taken from readme)

+ Continue Reading This Article

Posted By: Dinulescu Alexandru Adrian

Last Edit: 09 Jan 2010 @ 07:24 PM

EmailPermalinkComments (1)

09 Jan 2010 @ 12:14 AM 

Hello

This post may be something very common and very known, however not everyone knows these, so this post may be useful to someone.

Here is an entire list for this

<!--[IF IE 6]> < ![endif]--> this means that everything between those will only be loaded/visible by Internet Explorer 6
<!--[IF lte/lt/gte/gt IE 6]> < ![endif]--> this means that depending on the legend it will load things like
<!--[IF !IE]>--> <!--<![endif]--> this means that all versions of IE will NOT READ the code between those 2
 lines. This is extremely useful when you try to load specific information and u do not want IE to load it, but
 all the other browsers to load said that information. for example
<!--[IF !IE]>--> THIS LINE WILL NOT BE READ BY IE BROWSERS <!--<![endif]-->

+ Continue Reading This Article

Posted By: Dinulescu Alexandru Adrian

Last Edit: 09 Jan 2010 @ 12:18 AM

EmailPermalinkComments (0)

05 Jan 2010 @ 4:56 PM 

Hello

This post is sort of a checklist of things to check before you upload you’re files on the webserver, and this will be updated with more things as time allows it.

One of the most annoying things you can get is that if you maintain a localhost version of your website, and your live website has the google analytics code in it, when you upload your local files overwriting the files on the webserver, those newer files you have on your localhost may not have the google analytics script set, so you will end up like me with 1 week of uncounted traffic. Stupid and Newbie mistake, meh note to self, never push updates after midnight because shit may happen.

+ Continue Reading This Article

Posted By: Dinulescu Alexandru Adrian

Last Edit: 07 Jan 2010 @ 05:47 PM

EmailPermalinkComments (0)