The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Can someone please check this part of my css code?

View previous topic View next topic Go down

Solved Can someone please check this part of my css code?

Post by OMMA on January 26th 2016, 7:06 pm

Lines 1 - 118 of my css code has a lot of repeated text. I'm not sure if its needed or not or if its the cause of errors. I can post the whole css if you need me to but it all seems correct. Only lines 1-118 are in question. I just want to clean it up because it seems when I try to add any additional code it goes wonky. Please help. Thanks in advance.

Code:
#textarea_content iframe
#text_editor_iframe,
#text_editor_textarea,
*+ html
#textarea_content iframe
#text_editor_iframe,
*+ html
#text_editor_textarea,
* html
#textarea_content iframe
#text_editor_iframe,
*+ html
#text_editor_textarea,
* html
#textarea_content iframe
#text_editor_iframe,
* html
#text_editor_textarea,
*+ html
#text_editor_textarea
.quick_reply_textarea,
* html
#text_editor_textarea
 
.quick_reply_textarea {
  background-color: #000000;
  border: 1px #ffffff;
  }
.wysiwyg {
  background-color: #000000;
  }
#text_editor_textarea {
  background-color: #000000;
  }
body {
  background-color: #000000;
  background-position: top center;
  background-repeat: no-repeat;
  }
.pun {
* html
#text_editor_textarea,
*+ html
#text_editor_textarea
.quick_reply_textarea,
* html
#text_editor_textarea
  }
.quick_reply_textarea {
  background-color: #000000;
  border: 1px #ffffff;
  }
.wysiwyg {
  background-color: #000000;
  }
#text_editor_textarea {
  background-color: #000000;
  }
.quick_reply_textarea {
  background-color: #000000;
  border: 1px #ffffff;
  }
.wysiwyg {
  background-color: #000000;
  }
#text_editor_textarea {
  background-color: #000000;
  }
body {
  background-color: #000000;
  background-position: top center;
  background-repeat: no-repeat;
  }
.pun {
 
* html
#text_editor_textarea,
*+ html
#text_editor_textarea
.quick_reply_textarea,
* html
#text_editor_textarea
  }
.quick_reply_textarea {
  background-color: #000000;
  border: 1px #ffffff;
  }
.wysiwyg {
  background-color: #000000;
  }
#text_editor_textarea {
  background-color: #000000;
  }
body {
  background-color: #000000;
  background-position: top center;
  background-repeat: no-repeat;
  }
.pun {
  min-width: 1053px;
  width: 1053px;
  }
#pun-intro {
  background-color: #;
  }
body {
  background-color: #;
  opacity: 1;
  filter: alpha(opacity=1);
  background-image: url("http://i68.servimg.com/u/f68/13/76/91/31/forumb11.jpg");
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  }
.pun {
  min-width: 1054px;
  width: 980px;
  }

OMMA
Forumember

Male Posts : 59
Reputation : 1
Language : English
Location : USA

http://omma.forumotion.com

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by SLGray on January 27th 2016, 1:52 am

These (1-23) (42-48) (76-83) are not needed since there is no code between {}.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by Luffy on January 27th 2016, 1:55 am

@SLGray wrote:These (1-23) (42-48) (76-83) are not needed since there is no code between {}.
Probably you meant (40-48) and (74-83)! Very Happy
I think those extra lines are not needed also since no code are in them too! Embarassed






Luffy
Manager
Manager

Male Posts : 4245
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by SLGray on January 27th 2016, 1:56 am

Thanks @Luffy .


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by OMMA on January 27th 2016, 3:20 am

Thank you for your time guys. Much appreciated. Two more questions.

1) What about things with code in them but are repeated?

.quick_reply_textarea - (25, 49, 59, 84) all same exact code
.wysiwyg - (29, 53, 63, 88) all same exact code
body - no period before it like the others and (35, 69, 94) all same exact code

2) Does it matter how the css code is ordered? What I mean is should say page-body be "after" pun-intro and "before" pun-foot?

OMMA
Forumember

Male Posts : 59
Reputation : 1
Language : English
Location : USA

http://omma.forumotion.com

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by SLGray on January 27th 2016, 3:25 am

If you have the same CSS code more than once, you can delete all of them except for one.

Also if you have CSS codes that is for the same element, you can combine the two ore more codes.

It should not really matter the order, but sometimes to override some other codes you have to add it to the top of the stylesheet.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by OMMA on January 28th 2016, 12:46 am

OK thanks for your help. So I don't misunderstand what do you mean by combining the same element? Like this?

Code:
.quick_reply_textarea {
  background-color: #000000;
  }

and

.quick_reply_textarea {
  border: 1px #ffffff;
  }

can be?

Code:
.quick_reply_textarea {
  background-color: #000000;
  border: 1px #ffffff;
  }

Also, I didnt really ask but need to know. As mentioned above ".quick_reply_textarea" and ".wysiwyg" have a period in front but "body" doesn't. Is this irrelevant or should it have a period in front of it too?

OMMA
Forumember

Male Posts : 59
Reputation : 1
Language : English
Location : USA

http://omma.forumotion.com

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by APE on January 28th 2016, 2:07 am

@OMMA wrote:OK thanks for your help. So I don't misunderstand what do you mean by combining the same element? Like this?


Code:
.quick_reply_textarea {
 background-color: #000000;
 border: 1px #ffffff;
 }


Yes that is how it will work

@OMMA wrote:Also, I didnt really ask but need to know. As mentioned above ".quick_reply_textarea" and ".wysiwyg" have a period in front but "body" doesn't. Is this irrelevant or should it have a period in front of it too?


It Don't need one as the font and Codes are All there when you type it will show a code for the fonts you use

like this
Code:
 [font=Comic Sans MS]Hello ME[/font]

The Wysiwyg has no real font as its just a tool so it shows the codes to your text when typing





APE
Manager
Manager

Male Posts : 8631
Reputation : 756
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by OMMA on January 29th 2016, 6:07 am

OK thank you guys for your help. This can be marked as solved now

OMMA
Forumember

Male Posts : 59
Reputation : 1
Language : English
Location : USA

http://omma.forumotion.com

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by SLGray on January 29th 2016, 9:14 pm

Topic solved and archived


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum