[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 04:25 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
If you'll put the CSS that you had when you posted here back in I can check to see what the problem is tomorrow sometime, hopefully, since I have to get offline now. I can tell you're online since every time I check your CSS with the Web Dev add-on you've changed the span.de styling again, but I didn't catch the page in time to see the original issue you were having with it.

span.de is actually pretty easy to style (check my journal's reply pages for my ideas on that) but I've never added an image to it before, and I'm not sure if you want the IP notice floating or fixed (floating might be another issue).

The quote button can probably be moved where you want it with CSS, but again, I can't really check until tomorrow...

Hi, I'm back... :)

Date: 2010-12-30 09:54 pm (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
A couple of questions: first of all, you say floating fixed the problem, but I thought last night that perhaps floating was the problem, having been unable to see your original CSS in action -

Secondly, which page view are you applying your changes to, since I cannot see them at all?

I keep checking the reply page at this link: http://mag7wallpapers.dreamwidth.org/321.html?mode=reply ... but that is not showing me your warning image for the IP notice or any other styling.

Ok, that actually *isn't* showing me any styling, but maybe the code has to be modified to work on that page as well....I see your styling on the entry view, though (I had forgotten to check that, whoops).

Are you trying to apply your new code to all page views that support replies or only a certain one that I haven't checked?

You probably are trying to apply it to all page views, but let me know, before I offer any code...

Lastly, do you still want me to look at moving the Quote button, or is that sorted?
Edited (more info) Date: 2010-12-30 09:58 pm (UTC)

Re: Hi, I'm back... :)

Date: 2010-12-30 11:37 pm (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
OK, on the page reply view there's little I can do because the HTML to hook the CSS to is just not there - just like on my own journal (I was hoping different DW layouts would have more options for styling that page than mine does, but I guess we are SOL).

When I try to work with the existing HTML on the page-reply view, I wind up applying your IP image to all the bolded form options, and there is no way to undo that so it applies just to the IP notice, from what I can see. Also no way to move the quote button on that page, for the same reason.

On the entry page, though, you can move the quote button where you want it with this:

.page-entry #quotebuttonspan{display:block; position:absolute; margin-top: .3em; margin-left: 12em;}

Normally, with absolute positioning, you don't use margin-top or margin-left like I did: you use top and left, but the button moves too far out of view with those, and requires too high an amount of re-adjustment space to bring it back inline, so margin-top and margin-left are my workarounds for that little problem (telling you this just so you don't form bad habits thanks to my hacks).
Edited (more info) Date: 2010-12-30 11:38 pm (UTC)

Re: Hi, I'm back... :)

Date: 2010-12-31 12:15 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Tried it again; still works perfectly for me. Which browser are you using (Firefox, I assume, since you have Firebug, but which version?)? I'm using 3.6.13 - don't know if that makes any difference...

"If it doesn't work out, I might remove styling for this completely because I'd much rather have it align correctly than have pretty colors."

Just to be clear, the colors are only applying to your IP notice styling. If you want to toss the quote CSS you can still keep the IP (span.de) CSS; one won't affect the other.
Edited (more info) Date: 2010-12-31 12:21 am (UTC)

Re: Hi, I'm back... :)

Date: 2010-12-31 12:33 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Viewport width? I'm on 1450 x 960, or something like that (huge resolution). I'll look again (chances are, that block is not respecting absolute positioning, so on different viewports, it displays at different positions- I have the same problem with the "Back to Top" link CSS on my journal - in which case, I have no fix for it, either, sorry).

Re: Hi, I'm back... :)

Date: 2010-12-31 12:42 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Nope, it's not that, either. Everything is fine from what I can see at any res, except that the quote button lays next to the subject textbox at 600 x 400 800 x 600, but I fixed that while I was looking by changing margin-left to 13em 14em...I can post screen caps, if you like, and/or look at yours if you want, to see what you're talking about...
Edited (typos) Date: 2010-12-31 12:49 am (UTC)

Re: Hi, I'm back... :)

Date: 2010-12-31 01:10 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Yeah, it falls apart with no styling at all, even at the increased page-width. So I'd still suggest my original CSS with the width increase on margin-left to account for smaller viewports (but yeah, it did also work fine at 1280 x 768 with my original code):

.page-entry #quotebuttonspan{display:block; position:absolute; margin-top: .3em; margin-left: 14em;}

That code closes up that huge space you're going to have between the subjectbox and the quote button otherwise, and it opens up that same space when the viewport is small without pushing the quote button way, way out there into the page gutter.

Re: Hi, I'm back... :)

Date: 2010-12-31 01:47 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
Yes, it is strange indeed. I don't know what I'm missing here. Just to be sure it's not some strange Windows thing I adjusted my Windows screen res to 1280 x 768 a minute ago, then I tried my original code at both that res and 800 x 600, and it's still perfect. From here. Why it's not quite right on your end is not something I can quite figure out (fonts? if you have Vista fonts in the style sheet, which I haven't checked for, they're often much narrower than XP fonts so they can throw off padding on some elements).

If this was IE we were seeing such differences in, then I could instantly blame the fact that I use Vista if you use XP (because IE8 for XP and IE8 for Vista actually display some of the same style elements a bit differently), but since we're both in Firefox, I'm simply out of ideas.

2nd edit: Just checked my Fonts folder; I don't have "Lucida Grande" installed and that's your main font throughout; if you do, maybe that's the reason (assuming it's a wider/smaller font)? *feels clueless*
Edited (typo/more info) Date: 2010-12-31 01:57 am (UTC)

Re: Hi, I'm back... :)

Date: 2011-01-01 04:20 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
It's making me regret that I don't have the laptop I had until a few days ago (it was a friend's and he wanted it back). It was a 15" HP Pavilion Limited Edition, it ran XP with SP3, and had no Vista fonts, etc. Just like yours. It would have been perfect for trying to see what the problem was. If you want to leave my code for the Quote button off that's fine; I tested it again tonight at your layout's new width in 1280 x 768, 800 x 600, and 600 x 400, and again, it seemed to improve things, but I can't see what you're seeing, so, so be it.

At least we tried!

I love your IP notice image and background color, BTW; that was a very creative way to code it. :)

Date: 2010-12-30 11:49 am (UTC)
ninetydegrees: Art: self-portrait (Default)
From: [personal profile] ninetydegrees
I can't help with the quote button but adding display: block; to span.de worked for me.

Date: 2010-12-30 10:06 pm (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
display:block will work better. :)

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   

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 31st, 2025 03:07 am
Powered by Dreamwidth Studios