Suggestion Problem while trying to create a custom style

Regis

New member
Trusted Member
Jan 17, 2013
14
1
Hello,

I am trying to create a gallery type style for the forum (basicly a big thumnail view) but i ran into a very annoying problem with forum html.
When open any forum display (like http://www.anime-sharing.com/forum/hentai-games-38/) the preview image (img.preview)
is located inside a <a> tag that looks like this:
Code:
<a class="threadstatus" rel="vB::AJAX" style="height:58px [COLOR="#2C82C9"]!important[/COLOR];width:60px [COLOR="#2C82C9"]!important[/COLOR];padding-right:8px;background: none !important;" title=""> 
  <img class="preview" src="https://i4.imagetwist.com/th/30357/aybm13c48h1n.jpg" style="width:50px;height:50px;border:1px solid #c8c8c8;background:#fff;padding:2px;display:block;" title="">
</a>

My problem is that the a-tag has its height and width attributes written into the element itself and with the !important keyword. That is bad design and makes it impossible for me to overwrite those attributes by including my own style.
It's possible to change it using javascript but a custom style should just include css.

Could you look into it and maybe remove the !important keyword or find another way make those attributes rewritable?

thanks
 
Hey there.

I understand your frustration. However, this codebase is roughly 10 years old. Calling it ancient is an understatement. A newer version is being developed which adhere to the latest standard.

What you're trying to do - here I call it masonry listing style is also included in the new iteration. It means that I don't really want to touch this one until the deployment of our second major upgrade.
 
Upvote 0
Ok, thanks for the infos.

Guess all i can do is wait and see.
I think you know already know about this, but it makes people very happy when you make your redesign as style friendly as possible. Like avoiding the important keyword, a proper use of css classes and a clean/simple html structure. :D
 
Upvote 0

Users who are viewing this thread

Latest profile posts

LazuH1KKA wrote on Shine's profile.
GuRu wrote on Esan's profile.
https://www.anime-sharing.com/threads/200828-innocent-grey-虚ノ少女《new -cast-remaster-edition%E3%80%8B-%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E7%89%88.1289457/を katefile または mexashare またはrosefileに再アップロードして頂けますか。
nanashinanashi wrote on Esan's profile.
can you please reupload https://www.anime-sharing.com/threads/111125-overdrive-d2b-vs-deardrops-cross-the-future.1174725/ to katefile or mexashare or rosefile.Thanks
Seiki wrote on Shine's profile.
Hi, could you please reupload this?
https://www.dlsite.com/maniax/work/=/product_id/RJ423317.html

a new ep is come but i need old ep (sorry for my eng skill)
thank you.