[personal profile] valiha posting in [community profile] style_system
(OK, I fumbled this one and posted it to the wrong comm, so this time I'm double checking to make sure it goes to the right location)

My question is this: I would like to style replies and IP address notifications for [community profile] mag7wallpapers.

Using Firebug I discovered that span.de is what I needed to style. I followed the instructions used on this web page but the result wasn't exactly what I was hoping for. The notice now covers the Post comment, Preview and More options buttons, and I can't figure out how to separate the two.

I would also like to lower the Quote button next to Subject, or move it up - make that whole area neater, because the elements are all over the place - if it can be done. And also, have the notice expand to the width of the textarea.

(click to enlarge)

Help?

Original css:


Edited css:


(Fingers crossed!)

Date: 2010-12-30 10:02 pm (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
You are a genius, in this case. First of all, I hadn't meant to suggest floating as an option, I just got misinterpreted by the OP, and while the OP is right that floating *somewhat* fixes the problem, setting the display property to "block" makes it look much better than the float does (and negates the need for a float, while we're at it, since it centers the IP notice at the perfect width beneath the textarea). Awesome. :)
Edited Date: 2010-12-30 10:03 pm (UTC)

Date: 2010-12-30 10:09 pm (UTC)
ninetydegrees: Art: self-portrait (Default)
From: [personal profile] ninetydegrees
*g* Trial and error has made me realized that when dealing with SPANs you want to style as DIVs, display: block is often the better option.

Date: 2010-12-30 10:22 pm (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Yeah; where it gets thorny is often where links are involved in the span; then I usually go with inline-block, myself, which was something I just kinda pulled out of my butt one night years ago, but it's done the trick a lot of times since. I'm really not sure if I have the span.de CSS on my journal block displayed or not, but I'll check now, since it seems to seriously prettify things. :)

Edit: Yeah, actually, I do have it block displayed:

.de{display:block; padding: 4px; width: 98%; border: 1px solid #c3c0ba; margin-top: 1em!important;font-size: 80%;
background: #F3F5F2; color:#af230c;font-weight:bold; font-style:oblique;}


I've added so much code to the original layout I literally cannot recall all of it, but at least now that's cleared up. :)


Edited (more info) Date: 2010-12-30 10:25 pm (UTC)

Date: 2010-12-30 10:30 pm (UTC)
ninetydegrees: Art: self-portrait (Default)
From: [personal profile] ninetydegrees
I'm slowly getting used to using inline-block. It remains a bit of mysterious thing, though. :)

And it looks pretty! I've always thought this should be more emphasized than it is.

(I've subscribed to CSS code BTW; I'm probably going to need it soon; I have a style I have no idea how to code...)

Date: 2010-12-30 10:40 pm (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Oh, thank you!

Date: 2010-12-30 11:27 pm (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Try away! No difference at all between span.de and .de, it's just less code to write. The only time you need to include the word span and the dot before the code is when the span is supplementary to it.

For instance, on LJ and DW, the CSS for our user icons is .ljuser, but there's also a span around them in many page views that you can style separately. In that case you would try something like span.ljuser {background: red}. If you just want to style the icon, then you'd leave off the span and write something like .ljuser {height: 13px}.

In other words (editing after realizing why this is confusing, and that my explanation was not terribly clear) in my example, .ljuser controls the user-icon image only, while span.ljuser can control the background for that image and the image itself, if you like. Hope that helps. :)
Edited (html flubs/clarity) Date: 2010-12-30 11:50 pm (UTC)

Profile

Dreamwidth style system discussion

April 2025

S M T W T F S
  12345
6 78910 1112
13 141516171819
2021 2223242526
27282930   

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 1st, 2025 12:18 pm
Powered by Dreamwidth Studios