The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Need help regarding code structure and remove redundancy
Revolution
post Mar 28 2016, 02:06 PM
Post #1





Group: Members
Posts: 4
Joined: 28-March 16
Member No.: 24,107



I am really unsure how to handle the redundancy that is occurring so many times throughout the code. Like for instance, I am setting the height and background and all, and I just want the code in both style.css and guide.html to be so much cleaner. Have a look at the attachment, a .rar file with an html and css file, created this as a tool to help me in completing the visual novel "Clannad".


Attached File(s)
Attached File  Website.rar ( 1.43k ) Number of downloads: 1115
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Revolution
post Mar 28 2016, 03:57 PM
Post #2





Group: Members
Posts: 4
Joined: 28-March 16
Member No.: 24,107




The website isn't supporting anything below 1920x1080 in google chrome, because I am the only one who's gonna use this tool anyway, but I'll explain some key points that I haven't mentioned yet:

1. I will do jQuery to make the buttons at the top display the separate people's route, and have information pop up in the opaque black box about the different days in the visual novel as it advances when I click the different days on the left.
2. To rephrase, what I'm asking is that I want to write the properties in the style.css file as few times as possible, all the days have that same background, the same size and more - yet I was not potent enough to find a way to make one selection do the wonder.
3. I am really new to the division of content, so I don't really know if I need to set an id for each and every one of the days that are listed. The boxes with the names looked like they required an id because of the individual coloring.

Every improvement, no matter the importance, is appreciated!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th April 2024 - 07:18 AM