vForums Support > Programming & Coding :: Code Requests & Support :: > remove Pm border

remove Pm border - Posted By Alex Bailey (system) on 11th Aug 08 at 8:23pm
Code for removing the PM border and moving the text by pixels please {Smile}

Re: remove Pm border - Posted By Marc (cr0w) on 11th Aug 08 at 8:26pm
What exactly do you mean by "PM Border" ? {Smile}

Re: remove Pm border - Posted By Alex Bailey (system) on 11th Aug 08 at 8:47pm
[img]http://wimg.co.uk/ZnxEoH.bmp[/img]

Top one is what its at atm
Bottom is what i want it to be like


Edit: Do image tags not work?

Re: remove Pm border - Posted By blanka (blanka) on 11th Aug 08 at 8:53pm
 
[img]http://wimg.co.uk/ZnxEoH.bmp[/img]

Top one is what its at atm
Bottom is what i want it to be like


Edit: Do image tags not work?


Image tags don't work for BMP files. Which btw should never be use for the web. It makes file size extremely large.

Do i know what i am talking about? {Tongue Out}

Re: remove Pm border - Posted By Marc (cr0w) on 11th Aug 08 at 9:03pm
I can only assume the the image tags not working is because of the file extension.

And yes Blanka, you're right; BMP's use horrible compression algorithms. System, the image you posted is over 300kb in size; saved as a JPG or PNG it would be around 15-20kb at most. {Wink}

Anyway, I'll get to this after dinner. {Smile}

*Wanders to dining room*

Re: remove Pm border - Posted By Alex Bailey (system) on 11th Aug 08 at 11:07pm
it was because i did it in paint

Re: remove Pm border - Posted By Marc (cr0w) on 11th Aug 08 at 11:44pm
 
it was because i did it in paint


Paint has a dropdown for selecting different filetypes. {Wink}

Anyway, give this a try:

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. // Remove UT border & reposition
  4.  
  5. var ut = document.getElementById("user_table");
  6.  
  7. ut.cellSpacing = 0;
  8. ut.style.position = 'relative';
  9. ut.style.top = '-5px';
  10. //-->
  11. </script>
 


{Smile}

Re: remove Pm border - Posted By Alex Bailey (system) on 11th Aug 08 at 11:50pm
It gets rid of the border, but doesn't move the text at all

Re: remove Pm border - Posted By Marc (cr0w) on 12th Aug 08 at 12:08am
 
It gets rid of the border, but doesn't move the text at all


Try changing the value in this line:

ut.style.top = '-5px';

{Smile}

Re: remove Pm border - Posted By Alex Bailey (system) on 12th Aug 08 at 12:08am
I did try that , didn't work

Re: remove Pm border - Posted By Marc (cr0w) on 12th Aug 08 at 12:36am
Could you please link me to the board where you tried the code? {Smile}

Re: remove Pm border - Posted By Alex Bailey (system) on 12th Aug 08 at 12:41am
www.pinkness.vforums.co.uk

Re: remove Pm border - Posted By Marc (cr0w) on 12th Aug 08 at 12:49am
The code seems to be working fine for me; as you can see I moved the user bar up so that it is touching the welcome table. By removing the negative sign it pushes it down toward the ad.

If it still is not working, may I ask which browser you're using? {Smile}

Re: remove Pm border - Posted By Alex Bailey (system) on 12th Aug 08 at 12:56am
IE and you get what i shown ya now?

Re: remove Pm border - Posted By Marc (cr0w) on 12th Aug 08 at 1:45am
Yeah, I understand now, sorry for the mix-up. {Tongue Out}

Right, well, after messing around with CSS properties for a good hour with IE still being stupid, I decided to just set the background colour to be the same as the rest of the user bar. So I took a screenshot, opened in in Photoshop, used the eyedropper tool to get the hex code, and entered that.

Like everything else I tried, Firefox handled it perfectly.

Also like everything else I tried, IE failed miserably at it. I mean, not supporting most coding standards is expected from Microsoft, but not even being able to properly read hex codes makes IE even worse than I thought. {Lips Sealed}

In other words, IE has made me tired of coding for the moment; I'll get back to this in a little while. {Tongue Out}

Re: remove Pm border - Posted By Alex Bailey (system) on 12th Aug 08 at 10:38am
{Sad} okay

Re: remove Pm border - Posted By Alex Bailey (system) on 13th Aug 08 at 3:22pm
Bump

Re: remove Pm border - Posted By Alex Bailey (system) on 18th Aug 08 at 11:09am
A 5day bump? Simple code anyone fix this?

Re: remove Pm border - Posted By Ross (admin) on 18th Aug 08 at 11:31am
I'm not 100% sure if this is what you're after as there's no way of telling the dimensions from that image. But try:

Code:
 
  1. <style type="text/css">
  2. <!--
  3. #user_table {
  4. background-color: #000000;
  5. background-image: url('http://wimg.co.uk/gSTx2h.png');
  6. background-repeat: repeat-x;
  7. background-position: bottom left;
  8. }
  9. #user_table, #user_table .menu, #user_table font {
  10. color: #a4a4a4!important;
  11. }
  12. #user_table a {
  13. color: #c590c0!important;
  14. text-decoration: none;
  15. }
  16. #user_table td {
  17. background-color: transparent;
  18. background-image: none;
  19. }
  20. -->
  21. </style>
 

Re: remove Pm border - Posted By Alex Bailey (system) on 18th Aug 08 at 11:57am
www.pinkness.vforums.co.uk

Atm its a diff colour , if i change it to the background colour, it will work?

Re: remove Pm border - Posted By Graham (amusedtodeath) on 18th Aug 08 at 1:37pm
 
www.pinkness.vforums.co.uk

Atm its a diff colour , if i change it to the background colour, it will work?


It's CSS, so you can change the hex value to whatever you like and it still should work {Smile}

Re: remove Pm border - Posted By Ross (admin) on 18th Aug 08 at 7:13pm
Sorry. My test forum has a black border color so I didn't notice it on there. I've added a background color attribute in the above code. The bit which looks like this:

background-color: #000000;

Re: remove Pm border - Posted By Alex Bailey (system) on 19th Aug 08 at 5:50pm
For some reason the code only works when logged in {Unsure}