עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

עיצוב תפריט HTML/CSS

Featured Replies

פורסם

אהלן, יש לי תפריט להלן:

s9vy.png

כעת, כפי שתראו, יש מרווח קטן בין התפריט (עוצב כמובן בידי margin).

אני מעונין שהרווח הזה יירד ובמקומו יהיה צבע כחול.

ניסיתי לשחק עם הmargin אך לא זאת הבעיה; הבעיה היא בתפריט עצמו. התפריט מעוצב עם ul,li כך שתמיד יהיה מרווח בין תיבה לתיבה.

במידה ואני אוציא את ה<li>, כל התפריט יתחרבש ויירד למטה ולא יהיה מסודר.

ניסיתי גם לעשות <span> אבל זה לא עבד.

במידה ותרצו קוד מלא של התפריט / קוד מלא של תפריט הHTML. תקבלו בשמחה.

תודה.

פורסם

השאלה היא איך הצבת את הפריטים אחד ליד השני, ע"י float? או ע"י inline-block?

אתה צריך לאפס את ה margin ולהשתמש ב border על מנת להוסיף צבע אחיד בגבולות התיבות.

דוגמא:


ul {
display: block;
list-style: none;
padding: 0;
margin: 0;
}
ul li {
float: right;
padding: 0;
margin: 0;
border: 1px solid blue;
}
ul li a {
display: block;
padding: 4px 6px;
}

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.