User Style Help

Do you have a technical question that doesn't really fit a specific console? Want some general info on electronics, hacking, making cookies, etc? Here's the place to ask! Go nuts.

Moderator:Moderators

Post Reply
User avatar
bicostp
Moderator
Posts:10491
Joined:Mon Mar 07, 2005 5:47 pm
Steam ID:bicostp
Location:Spamalot
Contact:
User Style Help

Post by bicostp » Sat Nov 18, 2006 10:22 am

I'm trying to put together a user style for CAD, but I have hit a snag.

I want to replace this:

Code: Select all

<td valign="bottom" align="right" height="87" colspan="8">
with this:

Code: Select all

<td colspan="8" align="right" height="103" valign="bottom">
However, I only want to change that table cell, not any of the others.

How is that done?, or is it even possible?

For those of you who are wondering what this will accomplish:
  • - Fix the top banner because AdBlock knocks it out of place
    - Correct the gap in the left side link bar that AdBlock creates when it blocks the "Advertise" button
    - Stretch the news post cells to fill the space to the right left behind after the ads are removed
Maybe it will change some other stuff too. I don't know. It probably won't block ads by itself unless I can figure that part out. It will rely on AdBlock and Filterset.G for a while.

EDIT: I've moved this from F42 to Tech Q&A because in hindsight I think it belongs there. Oops.

Rellizate
Posts:732
Joined:Sat Nov 04, 2006 11:00 am

Post by Rellizate » Sat Nov 18, 2006 1:19 pm

The only difference I can see between them is the height. Just use this:

Code: Select all

<td valign="bottom" align="right" height="103" colspan="8">

User avatar
bicostp
Moderator
Posts:10491
Joined:Mon Mar 07, 2005 5:47 pm
Steam ID:bicostp
Location:Spamalot
Contact:

Post by bicostp » Sat Nov 18, 2006 1:25 pm

I know, I changed the code in Notepad on a locally saved copy of the page until I got the alignment right.

The missing piece is the code that swaps the two values in the user style sheet. I know it would be simple to define the "td" value in CSS, but it only needs to be changed that one time. (Changing the tag definition would bugger everything up.)

On another note, I've put together a hack a day sheet.
http://userstyles.org/style/show/1357

(still working on the one for CAD)

User avatar
bicostp
Moderator
Posts:10491
Joined:Mon Mar 07, 2005 5:47 pm
Steam ID:bicostp
Location:Spamalot
Contact:

Post by bicostp » Mon Nov 20, 2006 3:00 pm

*bump*

Post Reply