Information

Cat that looks like dobby

Cat that looks like dobby


We are searching data for your request:

Forums and discussions:
Manuals and reference books:
Data from registers:
Wait the end of the search in all databases.
Upon completion, a link will appear to access the found materials.

Cat that looks like dobby and i want to show him as a tab

I'm trying to create a tab with a cat.

I want it to look exactly like dobby, but without the blue border.

Here's the image:

http://www.imgur.com/fqjhxZK.png

The tab i'm trying to make is the first one. I want it to look exactly like this, but without the blue border and the background image.

The CSS code i'm using:

.tab.content

border-top:1px solid #E5E5E5

border-bottom:1px solid #E5E5E5

background-image:url('http://www.coumba.com/wp-content/uploads/2014/04/Cat-in-Box-Wallpaper-with-Cats.jpg')

height:400px,

width:600px,

position:relative

margin:0px auto 0px auto,

padding:20px 0px 0px 0px,

A:

The blue border on the first box is due to the following CSS rule:

.box

{

margin: 0px auto 0px auto,

width: 300px,

height: 400px,

text-align: center,

}

If you don't want that, just remove it from that class.

And then, to remove the second and third div's blue border, just add the following CSS:

.tab.content

{

border-top: 0px solid #E5E5E5,

border-bottom: 0px solid #E5E5E5,

background-image:url('http://www.coumba.com/wp-content/uploads/2014/04/Cat-in-Box-Wallpaper-with-Cats.jpg'),

height: 400px,

width: 600px,

position: relative,

margin: 0px auto 0px auto,

padding: 20px 0px 0px 0px,

}

You don't even need the position: relative, here, it doesn't have any effect.

The second and third divs have the following class:

.cat

{

float: right,

height: 150px,

width: 60px,

text-align: center,

margin: 0px auto 10px auto,

}

Removing the blue border on the first div will leave you with a blue border on the second and third div (as those divs float to the right).

If you want them to stay at the very top of the tab, add the following CSS:

.tab

{

margin: 0px auto,

width: 600px,

height: 100px,

position: relative,

}

.tab.content

{

border-top: 0px solid #E5E5E5,

border-bottom: 0px solid #E5E5E5,

background-image:url('http://www.coumba.com/wp-content/uploads/2014/04/Cat-in-Box-Wallpaper-with-Cats.jpg'),

height: 400px,

width: 600px,

position: relative,

margin: 0px auto 0px auto,

padding: 20px 0px 0px 0px,

}

You need to add position: relative, to.tab because this will allow you to position absolutely the.cat div.

And you don't need position: relative, to.tab.content because this will remove the blue border from the bottom of the.cat div.

The height of the tab is the sum of the height of the.cat div and the margin-top of the.tab div. So you can change that to whatever you want by just playing around with it.

You can also remove the text-align: center, from the.tab class because the.tab div already is centered anyway.

The reason why you're getting a blue border on the bottom of the.tab div (at the end of the line) is because the width: 600px, in the.tab class is greater than the width: 600px, in the.tab.content class.

EDIT:

If you want to keep your tab border, you can add another border to the first box (that you want to keep) and change the following CSS rules:

.tab.content

{

border-top: 0px solid #E5E5E5,

border-bottom: 0px


Watch the video: A day in the life of Teddy the Dobby Cat (July 2022).


Comments:

  1. Jurr

    I congratulate you, your thought will be useful

  2. Gagore

    What a sentence ... great, the idea excellent

  3. Janus

    We can talk on this issue for a long time.

  4. Mukinos

    I like it, and it is relevant and interesting!

  5. Ghislain

    You are absolutely right. There is something in this and I like this idea, I completely agree with you.



Write a message

Video, Sitemap-Video, Sitemap-Videos