Is there a way to create a mozila-like tab using css? - php

I have been looking for a Latest Firefox-like tab written using css but cannot find one.
Sorry, to make sure I am clear, I am trying to replicate the look in order to use it in a web application or a website

if you can have already a script (css) for tabs try to just play with the border radius:
border-radius: [first corner value]px [second corner value]px [third corner value]px [fourth corner value]px;
PS (Hint)
The values in CSS can even be negative
Hope this [tries to] help

Related

Unable to find css property

I have used HTML5 template to build a simple web site http://glassta.com , however from past one week i am struggling with a css issue. From attached image you can see there is a gap in right hand side and bottom. Can you please help me to identify the html element creating that gap and how to fix it. Please let me know if you require any other information. Web site url - http://glassta.com
Okay, your problem is when the page loads, there is a massive height that pops up. I'm guessing it's the carousel items that's stacked underneath each other. This causes the vertical scroll bar to appear. The carousel then initializes but is taking the width of the viewport that contains the scroll bar. After the INIT the scroll bar hides and you're left with the space it took up.
I haven't used that library yet so I'm not sure how you'd go about fixing the issue. Maybe place an overflow: hidden; on the body tag.
Thank you for providing valuable clues, i looked into master slider documentation http://www.masterslider.com/doc/#quickstart and found the slider height is controlled by javascript not css.
I have modified javascript width and height to solve the problem. This javascript will in your index.php page.
slider.setup('masterslider', {
width: 1400, // slider standard width
height: 620, // slider standard height
space: 1,
layout: 'fullwidth',
loop: true,
preload: 0,
instantStartLayers: true,
autoplay: true
});

Detect a certain point of image progromatically

I have been studying how this link creates a custom products. The part that confuses me is that whenever you add a necklace with different length, the pendant will still be centered at the end of that necklace. The following image shows where they always place the pendant.
here is a my fiddle. I realized that pendant's styles top and left changes whenever the necklace changes, so somehow they detect the endpoint of the necklace and calculate the top and left of the pendant and place the pendant there.
Therefore, is it possible to detect the pointed area progromatically using either PHP or jQuery image processing? if not, what is the technique used to place the pendant on the right place.
I have updated your fiddle
here is the link Fiddle

Drawing a rectangle at specific position on areamap when launching the page

I use maphilight jquery plugin with hover and onclick features. Which works fine.
Is there a way to draw a rectangle by default on the areamap image at a predefined position and size? So without to hover or click on it, just draw a rectangle right after the page is loaded.
I would like to use this solution with PHP+mySQL search. So when someone searches and finds the desired objec on a page (as a part on an areamap, and I know the position of it), clicking on the result link, I would like to load the page that has this shape and would like to be highlighted or drawn around with a rectangle as long as the person click/hover on another area on the same page. Or if this is not possible, then just drawing the rectangle on the desired position.
Is there a way to accomplish this?
The searching and lauching mechanism is not an issue now... I'll do it somehow. I just need the solution to draw the rectangle on areamap.
I tried using CSS "z-index", canvas and even SVG but the rectangle was always drawn after the area map, so at the bottom of my page and not on the areamap :(
Can anyone help me? Thank you.
your rectangle also needs to have position:absolute css style, e.g.,
$('div.map').append('<div style="position:absolute;left:100px;top:100px;
height:10px;width:10px;background-color:#f00;z-index:1;"></div>');

Space between flash and text

In my site link
http://gpuzzles.com/games/tower-of-hanoi/
There is space difference between text and flash, how can i resolve it
The space belongs to the flash object, so the best solution is editting the flash file.
But you could also use wmode=transparent and a lower z-indexto the flash, and use negative margins to fix the space.
there are some work around to move the div have green background using position:absolute property and giving z-index a bit higher value.
So in your case you have to use position:relative in ID #content-box-in-left-in and then give the child div position:absolute and top: or bottom this way you can move the green background to anywhere by giving some value to top or bottom.
I can't make a Demo here as you only upload the website link not any Demo link.

Simple slideshow with navigation overlay

I'm currently re-designing my portfolio site & I would like to use the best non-flash method possible to create the following slideshow shown in my layout:
http://oi49.tinypic.com/xeifeq.jpg
I would only have 3 slides or so in the show, and I would like to overlay left/right nav buttons as shown.
So how do I go about this?
There are tons of options. With javascript libraries like jQuery, a lot of animations that needed flash once, can be easily done.
Try googling, jQuery Sliders
Although you could use a pure CSS solution you'd get better browser support by using javascript to animate your slideshow.
There's roughly a billion javascript plugins to do this for you, but here's a good one - http://css-tricks.com/examples/AnythingSlider/
You can tweak the CSS of most plugins to get the overlaying arrow effect you want. The method I would use for this is to set the container for the slideshow to position:relative and then set the arrows to be position:absolute ...so for example the left arrow can now be positioned using top:50% left:0
Good luck!

Categories