Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 01-25-2008, 06:21 AM Revert a Box's CSS
Dakoom's Avatar
Experienced Talker

Posts: 42
Name: Norman
Location: [Italy]
Trades: 0
Check one of my forum threads:

http://www.web-city.it/forum/showthread.php?t=2922

And now, check this image:

http://img180.imageshack.us/img180/8136/sduk9.jpg

I would like to revert that box's CSS. I don't know how to do it. First, I suppose, I have to revert that image (this) to the right.. but the, how do I set my CSS?

Quote:
Originally Posted by My Codes

CSS:

HTML Code:
/* Message Box */

.m_topleft {
background: url(skin/message/b_01.gif) top left no-repeat;
}
.m_topright {
background: url(skin/message/b_03.gif) top right no-repeat;
padding: 0px 20px 0px 28px;
/* The first and third should be 0px, the second is the width
of the top right corner image and the fourth is the width
of the top left corner image */
}
.m_topmid {
background: url(skin/message/b_02.gif) top right repeat-x;
height: 17px; /* This height must be the height of the background image used */
}
.m_left {
background: url(skin/message/b_04.gif) top left repeat-y;
}
.m_right {
background: url(skin/message/b_06.gif) top right repeat-y;
margin-right: 2px;
padding: 0px 18px 0px 0px;
/* The first and third should be 0px, the second is the width
of the right border image and the fourth is the width
of the left border image */
}
.m_mid {
background: url(skin/message/b_05.gif) top left no-repeat;
padding-left: 28px;
}
.m_content {
background-color: #FFFFFF;
}

.m_bottomleft {
background: url(skin/message/b_07.gif) top left no-repeat;
}
.m_bottomright {
background: url(skin/message/b_09.gif) top right no-repeat;
padding: 0px 20px 0px 28px;
/* The first and third should be 0px, the second is the width
of the bottom right corner image and the fourth is the width
of the bottom left corner image */
}
.m_bottommid {
background: url(skin/message/b_08.gif) top right repeat-x;
height: 17px; /* This height must be the height of the background image used */
}

/* Message Box End */
HTML:

HTML Code:
<!-- Message Box -->

<div class="m_topleft">
<div class="m_topright">
<div class="m_topmid">
</div>
</div>
</div>
<div class="m_left">
<div class="m_right">
<div class="m_mid">
<div class="m_content">
<!-- Begin content -->
<p>Here my content.</p>
<!-- End content -->
</div>
</div>
</div>
</div>
<div class="m_bottomleft">
<div class="m_bottomright">
<div class="m_bottommid">
</div>
</div>
</div>
<!-- / Message Box -->
Can you help me?
Dakoom is offline
Reply With Quote
View Public Profile Visit Dakoom's homepage!
 
 
Register now for full access!
Old 01-25-2008, 11:49 AM Re: Revert a Box's CSS
BlackWater's Avatar
Experienced Talker

Posts: 31
Trades: 0
The CSS shouldn't change if you simply wish the image to be flipped horizontally. Just take it into your favorite image editor, horizontally flip the box and then everything should be fine.

The only issue you may run into is the content might not be perfectly in the box depending on the margins of the box so simply add a padding or margin attribute to the content <div>
__________________
Code:
if( $hungry ) { eat(); } 
    else { sleep(); }
BlackWater is offline
Reply With Quote
View Public Profile
 
Old 01-25-2008, 12:20 PM Re: Revert a Box's CSS
Dakoom's Avatar
Experienced Talker

Posts: 42
Name: Norman
Location: [Italy]
Trades: 0
All the box's images?
__________________
I'm italian, I am learning english.. so, please, if you see any errors in my grammar or spelling, let me know via PM. Danke!

Please login or register to view this content. Registration is FREE
Dakoom is offline
Reply With Quote
View Public Profile Visit Dakoom's homepage!
 
Old 01-25-2008, 07:24 PM Re: Revert a Box's CSS
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
you probably only need to flip one image

but stealing images from another site is NOT a good idea
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-28-2008, 03:53 AM Re: Revert a Box's CSS
Dakoom's Avatar
Experienced Talker

Posts: 42
Name: Norman
Location: [Italy]
Trades: 0
Quote:
Originally Posted by chrishirst View Post
you probably only need to flip one image
Then the CSS does not change?

Quote:
but stealing images from another site is NOT a good idea
What do you mean? Web City is my own site.
__________________
I'm italian, I am learning english.. so, please, if you see any errors in my grammar or spelling, let me know via PM. Danke!

Please login or register to view this content. Registration is FREE
Dakoom is offline
Reply With Quote
View Public Profile Visit Dakoom's homepage!
 
Old 02-14-2008, 11:44 AM Re: Revert a Box's CSS
Dakoom's Avatar
Experienced Talker

Posts: 42
Name: Norman
Location: [Italy]
Trades: 0
Nobody here?
__________________
I'm italian, I am learning english.. so, please, if you see any errors in my grammar or spelling, let me know via PM. Danke!

Please login or register to view this content. Registration is FREE
Dakoom is offline
Reply With Quote
View Public Profile Visit Dakoom's homepage!
 
Old 04-07-2008, 04:18 AM Re: Revert a Box's CSS
Dakoom's Avatar
Experienced Talker

Posts: 42
Name: Norman
Location: [Italy]
Trades: 0
Hey, can somebody help me?
__________________
I'm italian, I am learning english.. so, please, if you see any errors in my grammar or spelling, let me know via PM. Danke!

Please login or register to view this content. Registration is FREE
Dakoom is offline
Reply With Quote
View Public Profile Visit Dakoom's homepage!
 
Reply     « Reply to Revert a Box's CSS
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30963 seconds with 12 queries